OSDN Git Service

Issue explicit error messages for attempts to use "shell" operators in
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 22 Apr 2008 01:34:34 +0000 (01:34 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 22 Apr 2008 01:34:34 +0000 (01:34 +0000)
commit1ad76112e7eeb5b4db04fd8a2397818cac6f895b
treead040a7d92960ddf336952b2f9961427eee25d44
parentff673f558af1d09d006966f4bd779b1f464a4fc8
Issue explicit error messages for attempts to use "shell" operators in
ordinary expressions.  This probably doesn't catch every single case
where you might get "cache lookup failed for function 0" for use of a
shell operator, but it will catch most.  Per bug #4120 from Pedro Gimeno.

This patch incidentally folds make_op_expr() into its sole remaining
caller --- the alternative was to give it yet more arguments, which
didn't seem an improvement.
src/backend/parser/parse_oper.c