]> granicus.if.org Git - postgresql/commit
Fix the BY {REF,VALUE} clause of XMLEXISTS/XMLTABLE
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 7 Mar 2019 14:17:09 +0000 (11:17 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 7 Mar 2019 14:20:35 +0000 (11:20 -0300)
commiteaaa5986ad03f7871fa95878460e1132cb7e8963
tree0442a48dd65e5f254bcfdc7f659e9d94b38a7aa4
parentcb706ec4b60b3dede957ffdd70451b017eddffb0
Fix the BY {REF,VALUE} clause of XMLEXISTS/XMLTABLE

This clause is used to indicate the passing mode of a XML document, but
we were doing it wrong: we accepted BY REF and ignored it, and rejected
BY VALUE as a syntax error.  The reality, however, is that documents are
always passed BY VALUE, so rejecting that clause was silly.  Change
things so that we accept BY VALUE.

BY REF continues to be accepted, and continues to be ignored.

Author: Chapman Flack
Reviewed-by: Pavel Stehule
Discussion: https://postgr.es/m/5C297BB7.9070509@anastigmatix.net
doc/src/sgml/func.sgml
src/backend/catalog/sql_features.txt
src/backend/parser/gram.y