aboutsummaryrefslogtreecommitdiff
path: root/contrib/jsonb_plperl/sql/jsonb_plperl.sql
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2018-06-16 14:10:17 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2018-06-16 14:11:14 -0400
commit0dcf68e5a1f1c600bdf29b47cab30a62301a7af1 (patch)
tree127bccdbc95b71fab225358f0201eba2a47d8060 /contrib/jsonb_plperl/sql/jsonb_plperl.sql
parent15378c1a15390a2b4c315f19f1644af46c7e3a15 (diff)
downloadpostgresql-0dcf68e5a1f1c600bdf29b47cab30a62301a7af1.tar.gz
postgresql-0dcf68e5a1f1c600bdf29b47cab30a62301a7af1.zip
Fix some minor error-checking oversights in ParseFuncOrColumn().
Recent additions to ParseFuncOrColumn to make it reject non-procedure functions in CALL were neither adequate nor documented. Reorganize the code to ensure uniform results for all the cases that should be rejected. Also, use ERRCODE_WRONG_OBJECT_TYPE for this case as well as the converse case of a procedure in a non-CALL context. The original coding used ERRCODE_UNDEFINED_FUNCTION which seems wrong, and is certainly inconsistent with the adjacent wrong-kind-of-routine errors. This reorganization also causes the checks for aggregate decoration with a non-aggregate function to be made in the FUNCDETAIL_COERCION case; that they were not is a long-standing oversight. Discussion: https://postgr.es/m/14497.1529089235@sss.pgh.pa.us
Diffstat (limited to 'contrib/jsonb_plperl/sql/jsonb_plperl.sql')
0 files changed, 0 insertions, 0 deletions