pgsql: Allow empty content in xml type - Mailing list pgsql-committers

From Peter Eisentraut
Subject pgsql: Allow empty content in xml type
Date
Msg-id E1XRNV5-000218-Ur@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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>

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/57b1085df55d092e2a728043ec607db8fdef2483

Modified Files
--------------
src/backend/utils/adt/xml.c         |   14 +++++++++-----
src/test/regress/expected/xml.out   |   28 ++++++++++++++++++++++++++++
src/test/regress/expected/xml_1.out |   16 ++++++++++++++++
src/test/regress/sql/xml.sql        |    4 ++++
4 files changed, 57 insertions(+), 5 deletions(-)


pgsql-committers by date:

Previous
From: Stephen Frost
Date:
Subject: pgsql: Move ALTER ... ALL IN to ProcessUtilitySlow
Next
From: Peter Eisentraut
Date:
Subject: pgsql: doc: Reflect renaming of Mac OS X to OS X