@@ -1611,7 +1611,13 @@ babelfishDumpOpclassHelper(Archive *fout, const OpclassInfo *opcinfo, PQExpBuffe
1611
1611
pg_strcasecmp (opclass , quote_all_identifiers ? "\"sys\".\"int2_numeric\"" : "sys.int2_numeric" ) != 0 &&
1612
1612
pg_strcasecmp (opclass , quote_all_identifiers ? "\"sys\".\"numeric_int2\"" : "sys.numeric_int2" ) != 0 &&
1613
1613
pg_strcasecmp (opclass , quote_all_identifiers ? "\"sys\".\"int8_numeric\"" : "sys.int8_numeric" ) != 0 &&
1614
- pg_strcasecmp (opclass , quote_all_identifiers ? "\"sys\".\"numeric_int8\"" : "sys.numeric_int8" ) != 0 )
1614
+ pg_strcasecmp (opclass , quote_all_identifiers ? "\"sys\".\"numeric_int8\"" : "sys.numeric_int8" ) != 0 &&
1615
+ pg_strcasecmp (opclass , quote_all_identifiers ? "\"sys\".\"int2_numeric_ops\"" : "sys.int2_numeric_ops" ) != 0 &&
1616
+ pg_strcasecmp (opclass , quote_all_identifiers ? "\"sys\".\"numeric_int2_ops\"" : "sys.numeric_int2_ops" ) != 0 &&
1617
+ pg_strcasecmp (opclass , quote_all_identifiers ? "\"sys\".\"int4_numeric_ops\"" : "sys.int4_numeric_ops" ) != 0 &&
1618
+ pg_strcasecmp (opclass , quote_all_identifiers ? "\"sys\".\"numeric_int4_ops\"" : "sys.numeric_int4_ops" ) != 0 &&
1619
+ pg_strcasecmp (opclass , quote_all_identifiers ? "\"sys\".\"int8_numeric_ops\"" : "sys.int8_numeric_ops" ) != 0 &&
1620
+ pg_strcasecmp (opclass , quote_all_identifiers ? "\"sys\".\"numeric_int8_ops\"" : "sys.numeric_int8_ops" ) != 0 )
1615
1621
return ;
1616
1622
1617
1623
query = createPQExpBuffer ();
@@ -1640,15 +1646,16 @@ babelfishDumpOpclassHelper(Archive *fout, const OpclassInfo *opcinfo, PQExpBuffe
1640
1646
}
1641
1647
1642
1648
if (strcasecmp (opfnamespace , "\"pg_catalog\"" ) != 0 ||
1643
- strcasecmp (opfname , "integer_ops" ) != 0 )
1649
+ ( strcasecmp (opfname , "integer_ops" ) != 0 && strcasecmp ( opfname , "numeric_ops" ) != 0 ) )
1644
1650
{
1645
1651
PQclear (res );
1646
1652
return ;
1647
1653
}
1648
1654
1649
1655
PQclear (res );
1650
1656
1651
- if (pg_strcasecmp (opclass , quote_all_identifiers ? "\"sys\".\"int_numeric\"" : "sys.int_numeric" ) == 0 )
1657
+ if (pg_strcasecmp (opclass , quote_all_identifiers ? "\"sys\".\"int_numeric\"" : "sys.int_numeric" ) == 0 ||
1658
+ pg_strcasecmp (opclass , quote_all_identifiers ? "\"sys\".\"int4_numeric_ops\"" : "sys.int4_numeric_ops" ) == 0 )
1652
1659
{
1653
1660
str = quote_all_identifiers ?
1654
1661
"OPERATOR 1 \"sys\".< (int4, numeric) ,\n "
@@ -1665,7 +1672,8 @@ babelfishDumpOpclassHelper(Archive *fout, const OpclassInfo *opcinfo, PQExpBuffe
1665
1672
"FUNCTION 1 sys.int4_numeric_cmp(int4, numeric) " ;
1666
1673
}
1667
1674
1668
- if (pg_strcasecmp (opclass , quote_all_identifiers ? "\"sys\".\"numeric_int\"" : "sys.numeric_int" ) == 0 )
1675
+ if (pg_strcasecmp (opclass , quote_all_identifiers ? "\"sys\".\"numeric_int\"" : "sys.numeric_int" ) == 0 ||
1676
+ pg_strcasecmp (opclass , quote_all_identifiers ? "\"sys\".\"numeric_int4_ops\"" : "sys.numeric_int4_ops" ) == 0 )
1669
1677
{
1670
1678
str = quote_all_identifiers ?
1671
1679
"OPERATOR 1 \"sys\".< (numeric, int4) ,\n "
@@ -1682,7 +1690,8 @@ babelfishDumpOpclassHelper(Archive *fout, const OpclassInfo *opcinfo, PQExpBuffe
1682
1690
"FUNCTION 1 sys.numeric_int4_cmp(numeric, int4) " ;
1683
1691
}
1684
1692
1685
- if (pg_strcasecmp (opclass , quote_all_identifiers ? "\"sys\".\"int2_numeric\"" : "sys.int2_numeric" ) == 0 )
1693
+ if (pg_strcasecmp (opclass , quote_all_identifiers ? "\"sys\".\"int2_numeric\"" : "sys.int2_numeric" ) == 0 ||
1694
+ pg_strcasecmp (opclass , quote_all_identifiers ? "\"sys\".\"int2_numeric_ops\"" : "sys.int2_numeric_ops" ) == 0 )
1686
1695
{
1687
1696
str = quote_all_identifiers ?
1688
1697
"OPERATOR 1 \"sys\".< (int2, numeric) ,\n "
@@ -1699,7 +1708,8 @@ babelfishDumpOpclassHelper(Archive *fout, const OpclassInfo *opcinfo, PQExpBuffe
1699
1708
"FUNCTION 1 sys.int2_numeric_cmp(int2, numeric) " ;
1700
1709
}
1701
1710
1702
- if (pg_strcasecmp (opclass , quote_all_identifiers ? "\"sys\".\"numeric_int2\"" : "sys.numeric_int2" ) == 0 )
1711
+ if (pg_strcasecmp (opclass , quote_all_identifiers ? "\"sys\".\"numeric_int2\"" : "sys.numeric_int2" ) == 0 ||
1712
+ pg_strcasecmp (opclass , quote_all_identifiers ? "\"sys\".\"numeric_int2_ops\"" : "sys.numeric_int2_ops" ) == 0 )
1703
1713
{
1704
1714
str = quote_all_identifiers ?
1705
1715
"OPERATOR 1 \"sys\".< (numeric, int2) ,\n "
@@ -1716,7 +1726,8 @@ babelfishDumpOpclassHelper(Archive *fout, const OpclassInfo *opcinfo, PQExpBuffe
1716
1726
"FUNCTION 1 sys.numeric_int2_cmp(numeric, int2) " ;
1717
1727
}
1718
1728
1719
- if (pg_strcasecmp (opclass , quote_all_identifiers ? "\"sys\".\"int8_numeric\"" : "sys.int8_numeric" ) == 0 )
1729
+ if (pg_strcasecmp (opclass , quote_all_identifiers ? "\"sys\".\"int8_numeric\"" : "sys.int8_numeric" ) == 0 ||
1730
+ pg_strcasecmp (opclass , quote_all_identifiers ? "\"sys\".\"int8_numeric_ops\"" : "sys.int8_numeric_ops" ) == 0 )
1720
1731
{
1721
1732
str = quote_all_identifiers ?
1722
1733
"OPERATOR 1 \"sys\".< (int8, numeric) ,\n "
@@ -1733,7 +1744,8 @@ babelfishDumpOpclassHelper(Archive *fout, const OpclassInfo *opcinfo, PQExpBuffe
1733
1744
"FUNCTION 1 sys.int8_numeric_cmp(int8, numeric) " ;
1734
1745
}
1735
1746
1736
- if (pg_strcasecmp (opclass , quote_all_identifiers ? "\"sys\".\"numeric_int8\"" : "sys.numeric_int8" ) == 0 )
1747
+ if (pg_strcasecmp (opclass , quote_all_identifiers ? "\"sys\".\"numeric_int8\"" : "sys.numeric_int8" ) == 0 ||
1748
+ pg_strcasecmp (opclass , quote_all_identifiers ? "\"sys\".\"numeric_int8_ops\"" : "sys.numeric_int8_ops" ) == 0 )
1737
1749
{
1738
1750
str = quote_all_identifiers ?
1739
1751
"OPERATOR 1 \"sys\".< (numeric, int8) ,\n "
0 commit comments