]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix incorrect xmlschema output for types timetz and timestamptz.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 18 Mar 2022 20:01:42 +0000 (16:01 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 18 Mar 2022 20:01:42 +0000 (16:01 -0400)
commit84f3ecdaae8333d4e4815f34726fd07e46c3e3d4
treec4da0e03724eae5c6f8f515542cdc80e6832a958
parent13b54d1e0dde3fff2772e7f776dbd111444511ce
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: https://postgr.es/m/7f6fabaa-3f8f-49ab-89ca-59fbfe633105@me.com
src/backend/utils/adt/xml.c
src/test/regress/expected/xmlmap.out
src/test/regress/expected/xmlmap_1.out
src/test/regress/sql/xmlmap.sql