]> 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:18 +0000 (17:57 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 30 Jul 2010 17:57:18 +0000 (17:57 +0000)
commit2f7cd4356b1b95b935581477a9495003f589fc83
tree16fb281cbfa6361b6923a5c4c703124a8f694991
parent9e468f94aa30cef7c188a2b8b0d26f26130d44c0
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