Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane2008-06-06 17:59:29 +0000
committerTom Lane2008-06-06 17:59:29 +0000
commitc1943dbaefb9446da01281ea01b740a13f8d5a2f (patch)
tree87c1982a29980e02d90191538dd9f46320bdd99d /src/backend/nodes/print.c
parent700af334cccdf5e817fd1b16d4afb86322905980 (diff)
Fix pg_get_ruledef() so that negative numeric constants are parenthesized.
This is needed because :: casting binds more tightly than minus, so for example -1::integer is not the same as (-1)::integer, and there are cases where the difference is important. In particular this caused a failure in SELECT DISTINCT ... ORDER BY ... where expressions that should have matched were seen as different by the parser; but I suspect that there could be other cases where failure to parenthesize leads to subtler semantic differences in reloaded rules. Per report from Alexandr Popov.
Diffstat (limited to 'src/backend/nodes/print.c')
0 files changed, 0 insertions, 0 deletions