@@ -1771,7 +1771,13 @@ babelfishDumpOpclassHelper(Archive *fout, const OpclassInfo *opcinfo, PQExpBuffe
1771
1771
pg_strcasecmp (opclass , quote_all_identifiers ? "\"sys\".\"int2_numeric\"" : "sys.int2_numeric" ) != 0 &&
1772
1772
pg_strcasecmp (opclass , quote_all_identifiers ? "\"sys\".\"numeric_int2\"" : "sys.numeric_int2" ) != 0 &&
1773
1773
pg_strcasecmp (opclass , quote_all_identifiers ? "\"sys\".\"int8_numeric\"" : "sys.int8_numeric" ) != 0 &&
1774
- pg_strcasecmp (opclass , quote_all_identifiers ? "\"sys\".\"numeric_int8\"" : "sys.numeric_int8" ) != 0 )
1774
+ pg_strcasecmp (opclass , quote_all_identifiers ? "\"sys\".\"numeric_int8\"" : "sys.numeric_int8" ) != 0 &&
1775
+ pg_strcasecmp (opclass , quote_all_identifiers ? "\"sys\".\"int2_numeric_ops\"" : "sys.int2_numeric_ops" ) != 0 &&
1776
+ pg_strcasecmp (opclass , quote_all_identifiers ? "\"sys\".\"numeric_int2_ops\"" : "sys.numeric_int2_ops" ) != 0 &&
1777
+ pg_strcasecmp (opclass , quote_all_identifiers ? "\"sys\".\"int4_numeric_ops\"" : "sys.int4_numeric_ops" ) != 0 &&
1778
+ pg_strcasecmp (opclass , quote_all_identifiers ? "\"sys\".\"numeric_int4_ops\"" : "sys.numeric_int4_ops" ) != 0 &&
1779
+ pg_strcasecmp (opclass , quote_all_identifiers ? "\"sys\".\"int8_numeric_ops\"" : "sys.int8_numeric_ops" ) != 0 &&
1780
+ pg_strcasecmp (opclass , quote_all_identifiers ? "\"sys\".\"numeric_int8_ops\"" : "sys.numeric_int8_ops" ) != 0 )
1775
1781
return ;
1776
1782
1777
1783
query = createPQExpBuffer ();
@@ -1800,15 +1806,16 @@ babelfishDumpOpclassHelper(Archive *fout, const OpclassInfo *opcinfo, PQExpBuffe
1800
1806
}
1801
1807
1802
1808
if (strcasecmp (opfnamespace , "\"pg_catalog\"" ) != 0 ||
1803
- strcasecmp (opfname , "integer_ops" ) != 0 )
1809
+ ( strcasecmp (opfname , "integer_ops" ) != 0 && strcasecmp ( opfname , "numeric_ops" ) != 0 ) )
1804
1810
{
1805
1811
PQclear (res );
1806
1812
return ;
1807
1813
}
1808
1814
1809
1815
PQclear (res );
1810
1816
1811
- if (pg_strcasecmp (opclass , quote_all_identifiers ? "\"sys\".\"int_numeric\"" : "sys.int_numeric" ) == 0 )
1817
+ if (pg_strcasecmp (opclass , quote_all_identifiers ? "\"sys\".\"int_numeric\"" : "sys.int_numeric" ) == 0 ||
1818
+ pg_strcasecmp (opclass , quote_all_identifiers ? "\"sys\".\"int4_numeric_ops\"" : "sys.int4_numeric_ops" ) == 0 )
1812
1819
{
1813
1820
str = quote_all_identifiers ?
1814
1821
"OPERATOR 1 \"sys\".< (int4, numeric) ,\n "
@@ -1825,7 +1832,8 @@ babelfishDumpOpclassHelper(Archive *fout, const OpclassInfo *opcinfo, PQExpBuffe
1825
1832
"FUNCTION 1 sys.int4_numeric_cmp(int4, numeric) " ;
1826
1833
}
1827
1834
1828
- if (pg_strcasecmp (opclass , quote_all_identifiers ? "\"sys\".\"numeric_int\"" : "sys.numeric_int" ) == 0 )
1835
+ if (pg_strcasecmp (opclass , quote_all_identifiers ? "\"sys\".\"numeric_int\"" : "sys.numeric_int" ) == 0 ||
1836
+ pg_strcasecmp (opclass , quote_all_identifiers ? "\"sys\".\"numeric_int4_ops\"" : "sys.numeric_int4_ops" ) == 0 )
1829
1837
{
1830
1838
str = quote_all_identifiers ?
1831
1839
"OPERATOR 1 \"sys\".< (numeric, int4) ,\n "
@@ -1842,7 +1850,8 @@ babelfishDumpOpclassHelper(Archive *fout, const OpclassInfo *opcinfo, PQExpBuffe
1842
1850
"FUNCTION 1 sys.numeric_int4_cmp(numeric, int4) " ;
1843
1851
}
1844
1852
1845
- if (pg_strcasecmp (opclass , quote_all_identifiers ? "\"sys\".\"int2_numeric\"" : "sys.int2_numeric" ) == 0 )
1853
+ if (pg_strcasecmp (opclass , quote_all_identifiers ? "\"sys\".\"int2_numeric\"" : "sys.int2_numeric" ) == 0 ||
1854
+ pg_strcasecmp (opclass , quote_all_identifiers ? "\"sys\".\"int2_numeric_ops\"" : "sys.int2_numeric_ops" ) == 0 )
1846
1855
{
1847
1856
str = quote_all_identifiers ?
1848
1857
"OPERATOR 1 \"sys\".< (int2, numeric) ,\n "
@@ -1859,7 +1868,8 @@ babelfishDumpOpclassHelper(Archive *fout, const OpclassInfo *opcinfo, PQExpBuffe
1859
1868
"FUNCTION 1 sys.int2_numeric_cmp(int2, numeric) " ;
1860
1869
}
1861
1870
1862
- if (pg_strcasecmp (opclass , quote_all_identifiers ? "\"sys\".\"numeric_int2\"" : "sys.numeric_int2" ) == 0 )
1871
+ if (pg_strcasecmp (opclass , quote_all_identifiers ? "\"sys\".\"numeric_int2\"" : "sys.numeric_int2" ) == 0 ||
1872
+ pg_strcasecmp (opclass , quote_all_identifiers ? "\"sys\".\"numeric_int2_ops\"" : "sys.numeric_int2_ops" ) == 0 )
1863
1873
{
1864
1874
str = quote_all_identifiers ?
1865
1875
"OPERATOR 1 \"sys\".< (numeric, int2) ,\n "
@@ -1876,7 +1886,8 @@ babelfishDumpOpclassHelper(Archive *fout, const OpclassInfo *opcinfo, PQExpBuffe
1876
1886
"FUNCTION 1 sys.numeric_int2_cmp(numeric, int2) " ;
1877
1887
}
1878
1888
1879
- if (pg_strcasecmp (opclass , quote_all_identifiers ? "\"sys\".\"int8_numeric\"" : "sys.int8_numeric" ) == 0 )
1889
+ if (pg_strcasecmp (opclass , quote_all_identifiers ? "\"sys\".\"int8_numeric\"" : "sys.int8_numeric" ) == 0 ||
1890
+ pg_strcasecmp (opclass , quote_all_identifiers ? "\"sys\".\"int8_numeric_ops\"" : "sys.int8_numeric_ops" ) == 0 )
1880
1891
{
1881
1892
str = quote_all_identifiers ?
1882
1893
"OPERATOR 1 \"sys\".< (int8, numeric) ,\n "
@@ -1893,7 +1904,8 @@ babelfishDumpOpclassHelper(Archive *fout, const OpclassInfo *opcinfo, PQExpBuffe
1893
1904
"FUNCTION 1 sys.int8_numeric_cmp(int8, numeric) " ;
1894
1905
}
1895
1906
1896
- if (pg_strcasecmp (opclass , quote_all_identifiers ? "\"sys\".\"numeric_int8\"" : "sys.numeric_int8" ) == 0 )
1907
+ if (pg_strcasecmp (opclass , quote_all_identifiers ? "\"sys\".\"numeric_int8\"" : "sys.numeric_int8" ) == 0 ||
1908
+ pg_strcasecmp (opclass , quote_all_identifiers ? "\"sys\".\"numeric_int8_ops\"" : "sys.numeric_int8_ops" ) == 0 )
1897
1909
{
1898
1910
str = quote_all_identifiers ?
1899
1911
"OPERATOR 1 \"sys\".< (numeric, int8) ,\n "
0 commit comments