Looks good, but the compile_python precedences look wrong still. You have:
+compile_python.set_precedence(40, BitwiseNot, BitwiseOr, BitwiseXOr, BitwiseAnd)
While according to http://docs.python.org/ref/summary.html, the 4 operators have different precedences.
According to http://www.postgresql.org/docs/8.3/static/sql-syntax-lexical.html#SQL-PRECEDENCE it looks like the defaults you've got for compile are okay (it puts shifts at the same precendence, but that doesn't matter too much).
« Back to merge proposal
Looks good, but the compile_python precedences look wrong still. You have:
+compile_ python. set_precedence( 40, BitwiseNot, BitwiseOr, BitwiseXOr, BitwiseAnd)
While according to http:// docs.python. org/ref/ summary. html, the 4 operators have different precedences.
According to http:// www.postgresql. org/docs/ 8.3/static/ sql-syntax- lexical. html#SQL- PRECEDENCE it looks like the defaults you've got for compile are okay (it puts shifts at the same precendence, but that doesn't matter too much).