Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 29d1115

Browse files
committed
Update xml_1.out and xml_2.out
Commit 0fbf011 should have updated them but didn't.
1 parent 16cb7db commit 29d1115

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/test/regress/expected/xml_1.out

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1010,6 +1010,9 @@ EXPLAIN (COSTS OFF, VERBOSE) SELECT * FROM xmltableview1;
10101010
Table Function Call: XMLTABLE(('/ROWS/ROW'::text) PASSING (xmldata.data) COLUMNS id integer PATH ('@id'::text), _id FOR ORDINALITY, country_name text PATH ('COUNTRY_NAME/text()'::text) NOT NULL, country_id text PATH ('COUNTRY_ID'::text), region_id integer PATH ('REGION_ID'::text), size double precision PATH ('SIZE'::text), unit text PATH ('SIZE/@unit'::text), premier_name text DEFAULT ('not specified'::text) PATH ('PREMIER_NAME'::text))
10111011
(7 rows)
10121012

1013+
-- errors
1014+
SELECT * FROM XMLTABLE (ROW () PASSING null COLUMNS v1 timestamp) AS f (v1, v2);
1015+
ERROR: XMLTABLE function has 1 columns available but 2 columns specified
10131016
-- XMLNAMESPACES tests
10141017
SELECT * FROM XMLTABLE(XMLNAMESPACES('http://x.y' AS zz),
10151018
'/zz:rows/zz:row'

src/test/regress/expected/xml_2.out

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1122,6 +1122,9 @@ EXPLAIN (COSTS OFF, VERBOSE) SELECT * FROM xmltableview1;
11221122
Table Function Call: XMLTABLE(('/ROWS/ROW'::text) PASSING (xmldata.data) COLUMNS id integer PATH ('@id'::text), _id FOR ORDINALITY, country_name text PATH ('COUNTRY_NAME/text()'::text) NOT NULL, country_id text PATH ('COUNTRY_ID'::text), region_id integer PATH ('REGION_ID'::text), size double precision PATH ('SIZE'::text), unit text PATH ('SIZE/@unit'::text), premier_name text DEFAULT ('not specified'::text) PATH ('PREMIER_NAME'::text))
11231123
(7 rows)
11241124

1125+
-- errors
1126+
SELECT * FROM XMLTABLE (ROW () PASSING null COLUMNS v1 timestamp) AS f (v1, v2);
1127+
ERROR: XMLTABLE function has 1 columns available but 2 columns specified
11251128
-- XMLNAMESPACES tests
11261129
SELECT * FROM XMLTABLE(XMLNAMESPACES('http://x.y' AS zz),
11271130
'/zz:rows/zz:row'

0 commit comments

Comments
 (0)