]> granicus.if.org Git - postgresql/commit
Improved version of patch to protect pg_get_expr() against misuse:
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 29 Jul 2010 23:16:33 +0000 (23:16 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 29 Jul 2010 23:16:33 +0000 (23:16 +0000)
commitf223bb7a4175e921c37bb12e9417541655219564
tree7d7e522d3a7ebcf867380b0cdbf9c1ef81fa8701
parent5b8bd0529ed5912dae04ffc3383bf4ac43e30083
Improved version of patch to protect pg_get_expr() against misuse:
look through join alias Vars to avoid breaking join queries, and
move the test to someplace where it will catch more possible ways
of calling a function.  We still ought to throw away the whole thing
in favor of a data-type-based solution, but that's not feasible in
the back branches.

This needs to be back-patched further than 9.0, but I don't have time
to do so today.  Committing now so that the fix gets into 9.0beta4.
src/backend/parser/parse_expr.c
src/backend/parser/parse_func.c
src/backend/parser/parse_oper.c
src/include/parser/parse_func.h