]> 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:56:59 +0000 (17:56 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 30 Jul 2010 17:56:59 +0000 (17:56 +0000)
commit6b8494a3adc009247ada8a7a7adc1c488396161d
treecb30d4d85b2ebbe479df32fd0d3632329a36c3eb
parentb08fd11508a2b36e64f456d8e0345f1c66dae333
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