BUG #15155: table_to_xmlschema() ignores string restriction whengenerating XSD
BUG #15155: table_to_xmlschema() ignores string restriction whengenerating XSD
От:
PG Bug reporting form <noreply@postgresql.org>
Дата:
The following bug has been logged on the website:
Bug reference: 15155
Logged by: Hardy Jonck
Email address: hjonck@gmail.com
PostgreSQL version: 10.3
Operating system: macOS 10.13.2 (17C67b) Kernel Version: Darwin 17
Description:
The *_to_xmlschema() functions correctly export restrictions for other types
but not for string.
For String, it exports and empty
To Reproduce:
CREATE DATABASE xsd_test;
\c xsd_test
CREATE TABLE if not exists to_xsd_test
(
_int INT,
_float FLOAT,
_varchar VARCHAR(10),
_date DATE
);
SELECT table_to_xmlschema('to_xsd_test',true,true,'');
Output (see string definition) - expecting a maxLength restriction: