]> granicus.if.org Git - postgresql/commit
Allow empty content in xml type
authorPeter Eisentraut <peter_e@gmx.net>
Tue, 9 Sep 2014 15:34:52 +0000 (11:34 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Tue, 9 Sep 2014 15:34:52 +0000 (11:34 -0400)
commit57b1085df55d092e2a728043ec607db8fdef2483
tree4709af218a0c32a4c748ca997accd4d64759c30d
parentf0051c1a142ecaff7828b87315c26c7acbf8e583
Allow empty content in xml type

The xml type previously rejected "content" that is empty or consists
only of spaces.  But the SQL/XML standard allows that, so change that.
The accepted values for XML "documents" are not changed.

Reviewed-by: Ali Akbar <the.apaan@gmail.com>
src/backend/utils/adt/xml.c
src/test/regress/expected/xml.out
src/test/regress/expected/xml_1.out
src/test/regress/sql/xml.sql