Fix incorrect xmlschema output for types timetz and timestamptz.
Tom 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: https://postgr.es/m/7f6fabaa-3f8f-49ab-89ca-59fbfe633105@me.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/adt/xml.c | modified | +2 −2 |
| src/test/regress/expected/xmlmap_1.out | modified | +8 −2 |
| src/test/regress/expected/xmlmap.out | modified | +496 −432 |
| src/test/regress/sql/xmlmap.sql | modified | +8 −2 |
Discussion
- [PATCH] Add support to table_to_xmlschema regex when timestamp has time zone 3 messages · 2022-02-18 → 2022-03-18