pgsql: Fix incorrect xmlschema output for types timetz and timestamptz.

Started by Tom Laneover 4 years ago1 messagescomitters
Jump to latest
#1Tom Lane
tgl@sss.pgh.pa.us

Fix incorrect xmlschema output for types timetz and timestamptz.

The output of table_to_xmlschema() and allied functions includes
a regex describing valid values for these types ... but the regex
was itself invalid, as it failed to escape a literal "+" sign.

Report and fix by Renan Soares Lopes. Back-patch to all
supported branches.

Discussion: /messages/by-id/7f6fabaa-3f8f-49ab-89ca-59fbfe633105@me.com

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/840729fd104e6ff35e0a6ebcf06ad053403a96f5

Modified Files
--------------
src/backend/utils/adt/xml.c | 4 +-
src/test/regress/expected/xmlmap.out | 928 ++++++++++++++++++---------------
src/test/regress/expected/xmlmap_1.out | 10 +-
src/test/regress/sql/xmlmap.sql | 10 +-
4 files changed, 514 insertions(+), 438 deletions(-)