pgsql: Allow empty content in xml type

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Allow empty content in xml type
Date: 2014-09-09 15:38:35
Message-ID: E1XRNV5-000218-Ur@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(dot)apaan(at)gmail(dot)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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2014-09-09 18:08:41 pgsql: doc: Reflect renaming of Mac OS X to OS X
Previous Message Stephen Frost 2014-09-09 14:59:40 pgsql: Move ALTER ... ALL IN to ProcessUtilitySlow