Allow empty content in xml type
Peter Eisentraut <peter_e@gmx.net>
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>
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/adt/xml.c | modified | +9 −5 |
| src/test/regress/expected/xml_1.out | modified | +16 −0 |
| src/test/regress/expected/xml.out | modified | +28 −0 |
| src/test/regress/sql/xml.sql | modified | +4 −0 |