*** /home/ioltas/git/postgres/src/test/regress/expected/xml.out 2017-08-14 13:40:10.236813150 +0900
--- /home/ioltas/git/postgres/src/test/regress/results/xml.out 2017-08-14 14:26:51.813260751 +0900
***************
*** 265,287 ****
SELECT xmlparse(document ' ');
ERROR: invalid XML document
! DETAIL: line 1: Start tag expected, '<' not found
^
SELECT xmlparse(document 'abc');
ERROR: invalid XML document
! DETAIL: line 1: Start tag expected, '<' not found
abc
^
SELECT xmlparse(document 'x');
! xmlparse
! --------------
! x
! (1 row)
!
SELECT xmlparse(document '&');
ERROR: invalid XML document
! DETAIL: line 1: xmlParseEntityRef: no name
&
^
line 1: Opening and ending tag mismatch: invalidentity line 1 and abc
--- 265,295 ----
SELECT xmlparse(document ' ');
ERROR: invalid XML document
! DETAIL: line 1: switching encoding : no input
!
! ^
! line 1: Start tag expected, '<' not found
^
SELECT xmlparse(document 'abc');
ERROR: invalid XML document
! DETAIL: line 1: switching encoding : no input
! abc
! ^
! line 1: Start tag expected, '<' not found
abc
^
SELECT xmlparse(document 'x');
! ERROR: invalid XML document
! DETAIL: line 1: switching encoding : no input
! x
! ^
SELECT xmlparse(document '&');
ERROR: invalid XML document
! DETAIL: line 1: switching encoding : no input
! &
! ^
! line 1: xmlParseEntityRef: no name
&
^
line 1: Opening and ending tag mismatch: invalidentity line 1 and abc
***************
*** 289,326 ****
^
SELECT xmlparse(document '&idontexist;');
ERROR: invalid XML document
! DETAIL: line 1: Entity 'idontexist' not defined
&idontexist;
^
line 1: Opening and ending tag mismatch: undefinedentity line 1 and abc
&idontexist;
^
SELECT xmlparse(document '');
! xmlparse
! ---------------------------
!
! (1 row)
!
SELECT xmlparse(document '');
! xmlparse
! --------------------------------
!
! (1 row)
!
SELECT xmlparse(document '&idontexist;');
ERROR: invalid XML document
! DETAIL: line 1: Entity 'idontexist' not defined
&idontexist;
^
line 1: Opening and ending tag mismatch: twoerrors line 1 and unbalanced
&idontexist;
^
SELECT xmlparse(document '');
! xmlparse
! ---------------------
!
! (1 row)
!
SELECT xmlpi(name foo);
xmlpi
---------
--- 297,337 ----
^
SELECT xmlparse(document '&idontexist;');
ERROR: invalid XML document
! DETAIL: line 1: switching encoding : no input
! &idontexist;
! ^
! line 1: Entity 'idontexist' not defined
&idontexist;
^
line 1: Opening and ending tag mismatch: undefinedentity line 1 and abc
&idontexist;
^
SELECT xmlparse(document '');
! ERROR: invalid XML document
! DETAIL: line 1: switching encoding : no input
!
! ^
SELECT xmlparse(document '');
! ERROR: invalid XML document
! DETAIL: line 1: switching encoding : no input
!
! ^
SELECT xmlparse(document '&idontexist;');
ERROR: invalid XML document
! DETAIL: line 1: switching encoding : no input
! &idontexist;
! ^
! line 1: Entity 'idontexist' not defined
&idontexist;
^
line 1: Opening and ending tag mismatch: twoerrors line 1 and unbalanced
&idontexist;
^
SELECT xmlparse(document '');
! ERROR: invalid XML document
! DETAIL: line 1: switching encoding : no input
!
! ^
SELECT xmlpi(name foo);
xmlpi
---------
***************
*** 458,464 ****
SELECT xml 'bar' IS DOCUMENT;
?column?
----------
! t
(1 row)
SELECT xml 'barfoo' IS DOCUMENT;
--- 469,475 ----
SELECT xml 'bar' IS DOCUMENT;
?column?
----------
! f
(1 row)
SELECT xml 'barfoo' IS DOCUMENT;
***************
*** 470,476 ****
SELECT xml '' IS NOT DOCUMENT;
?column?
----------
! f
(1 row)
SELECT xml 'abc' IS NOT DOCUMENT;
--- 481,487 ----
SELECT xml '' IS NOT DOCUMENT;
?column?
----------
! t
(1 row)
SELECT xml 'abc' IS NOT DOCUMENT;
***************
*** 520,535 ****
PREPARE foo (xml) AS SELECT xmlconcat('', $1);
SET XML OPTION DOCUMENT;
EXECUTE foo ('');
! xmlconcat
! --------------
!
! (1 row)
!
EXECUTE foo ('bad');
ERROR: invalid XML document
LINE 1: EXECUTE foo ('bad');
^
! DETAIL: line 1: Start tag expected, '<' not found
bad
^
SET XML OPTION CONTENT;
--- 531,550 ----
PREPARE foo (xml) AS SELECT xmlconcat('', $1);
SET XML OPTION DOCUMENT;
EXECUTE foo ('');
! ERROR: invalid XML document
! LINE 1: EXECUTE foo ('');
! ^
! DETAIL: line 1: switching encoding : no input
!
! ^
EXECUTE foo ('bad');
ERROR: invalid XML document
LINE 1: EXECUTE foo ('bad');
^
! DETAIL: line 1: switching encoding : no input
! bad
! ^
! line 1: Start tag expected, '<' not found
bad
^
SET XML OPTION CONTENT;
***************
*** 783,789 ****
SELECT xml_is_well_formed_document('bar');
xml_is_well_formed_document
-----------------------------
! t
(1 row)
SELECT xml_is_well_formed_document('abc');
--- 798,804 ----
SELECT xml_is_well_formed_document('bar');
xml_is_well_formed_document
-----------------------------
! f
(1 row)
SELECT xml_is_well_formed_document('abc');
***************
*** 820,832 ****
SELECT xml_is_well_formed('');
xml_is_well_formed
--------------------
! t
(1 row)
SELECT xml_is_well_formed('bar');
xml_is_well_formed
--------------------
! t
(1 row)
SELECT xml_is_well_formed('bar');
xml_is_well_formed
--------------------
! f
(1 row)
SELECT xml_is_well_formed('bar');
xml_is_well_formed
--------------------
! f
(1 row)
SELECT xml_is_well_formed('barnumber one');
xml_is_well_formed
--------------------
! t
(1 row)
SELECT xml_is_well_formed('bar');
--- 859,865 ----
SELECT xml_is_well_formed('number one');
xml_is_well_formed
--------------------
! f
(1 row)
SELECT xml_is_well_formed('bar');
***************
*** 856,862 ****
SELECT xml_is_well_formed('bar');
xml_is_well_formed
--------------------
! t
(1 row)
SELECT xml_is_well_formed('&');
--- 871,877 ----
SELECT xml_is_well_formed('bar');
xml_is_well_formed
--------------------
! f
(1 row)
SELECT xml_is_well_formed('&');
***************
*** 874,886 ****
SELECT xml_is_well_formed('');
xml_is_well_formed
--------------------
! t
(1 row)
SELECT xml_is_well_formed('');
xml_is_well_formed
--------------------
! t
(1 row)
SELECT xml_is_well_formed('&idontexist;');
--- 889,901 ----
SELECT xml_is_well_formed('');
xml_is_well_formed
--------------------
! f
(1 row)
SELECT xml_is_well_formed('');
xml_is_well_formed
--------------------
! f
(1 row)
SELECT xml_is_well_formed('&idontexist;');
***************
*** 930,950 ****
-- External entity references should not leak filesystem information.
SELECT XMLPARSE(DOCUMENT ']>&c;');
! xmlparse
! -----------------------------------------------------------------
! ]>&c;
! (1 row)
!
SELECT XMLPARSE(DOCUMENT ']>&c;');
! xmlparse
! -----------------------------------------------------------------------
! ]>&c;
! (1 row)
!
-- This might or might not load the requested DTD, but it mustn't throw error.
SELECT XMLPARSE(DOCUMENT ' ');
! xmlparse
! ------------------------------------------------------------------------------------------------------------------------------------------------------
!
! (1 row)
!
--- 945,962 ----
-- External entity references should not leak filesystem information.
SELECT XMLPARSE(DOCUMENT ']>&c;');
! ERROR: invalid XML document
! DETAIL: line 1: switching encoding : no input
! ]>&c;
! ^
SELECT XMLPARSE(DOCUMENT ']>&c;');
! ERROR: invalid XML document
! DETAIL: line 1: switching encoding : no input
! ]>&c;
! ^
-- This might or might not load the requested DTD, but it mustn't throw error.
SELECT XMLPARSE(DOCUMENT ' ');
! ERROR: invalid XML document
! DETAIL: line 1: switching encoding : no input
!