Skip to content

Commit

Permalink
[#790] fix: Disable pushdown of bit operators: ~,<<,>>
Browse files Browse the repository at this point in the history
  • Loading branch information
SmithTz committed Aug 2, 2022
1 parent 7e6d991 commit 5e59def
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/include/catalog/pg_proc_map.dat
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@
{proname => 'bitle', proargtypes => 'bit bit', mysql => '($1 <= $2)'},
{proname => 'bitlt', proargtypes => 'bit bit', mysql => '($1 < $2)'},
{proname => 'bitne', proargtypes => 'bit bit', mysql => '($1 <> $2)'},
{proname => 'bitnot', proargtypes => 'bit', mysql => '(~$1)'},
{proname => 'bitnot', proargtypes => 'bit', enable => 'f', mysql => '(~$1)'},
{proname => 'bitor', proargtypes => 'bit bit', mysql => '($1 | $2)'},
{proname => 'bit_or', proargtypes => 'bit', mysql => 'bit_or($1)'},
{proname => 'bit_or', proargtypes => 'int2', mysql => 'bit_or($1)'},
{proname => 'bit_or', proargtypes => 'int4', mysql => 'bit_or($1)'},
{proname => 'bit_or', proargtypes => 'int8', mysql => 'bit_or($1)'},
{proname => 'bitshiftleft', proargtypes => 'bit int4', mysql => '($1 << $2)'},
{proname => 'bitshiftright', proargtypes => 'bit int4', mysql => '($1 >> $2)'},
{proname => 'bitshiftleft', proargtypes => 'bit int4', enable =>'f', mysql => '($1 << $2)'},
{proname => 'bitshiftright', proargtypes => 'bit int4', enable => 'f', mysql => '($1 >> $2)'},
{proname => 'bitxor', proargtypes => 'bit bit', mysql => '($1 ^ $2)'},
{proname => 'bool', proargtypes => 'int4', mysql => '($1 != 0)'},
{proname => 'booleq', proargtypes => 'bool bool', mysql => '($1 = $2)'},
Expand Down Expand Up @@ -663,4 +663,4 @@
{proname => 'xideq', proargtypes => 'xid xid', mysql => '($1 = $2)'},
{proname => 'xidneqint4', proargtypes => 'xid int4', mysql => '($1 <> $2)'},
{proname => 'xidneq', proargtypes => 'xid xid', mysql => '($1 <> $2)'}
]
]

0 comments on commit 5e59def

Please sign in to comment.