]> granicus.if.org Git - postgresql/commit
Improved version of patch to protect pg_get_expr() against misuse:
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 30 Jul 2010 17:57:07 +0000 (17:57 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 30 Jul 2010 17:57:07 +0000 (17:57 +0000)
commit9e6dc1372f7ece296fc4a02b4c69f5ef86366acc
tree4feb3922513b39471e6e55f9ffad938208b5b929
parent242dc3819b9667eb4a8118a779932d42dce7d849
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.

Completion of back-port of my patch of yesterday.
src/backend/parser/parse_expr.c
src/backend/parser/parse_func.c
src/backend/parser/parse_oper.c
src/include/parser/parse_func.h