You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: contrib/ivorysql_ora/expected/ora_xml_functions.out
+54-30Lines changed: 54 additions & 30 deletions
Original file line number
Diff line number
Diff line change
@@ -27,45 +27,69 @@ INSERT INTO xmlnstest VALUES(1, xmltype('<soapenv:Envelope xmlns:soapenv="http:/
27
27
-- extrct(XML)
28
28
--
29
29
SELECT extract(XMLType('<AA><ID>1</ID></AA>'), '/AA/ID') from dual;
30
-
ERROR: syntax error at or near "("
31
-
LINE 1: SELECT extract(XMLType('<AA><ID>1</ID></AA>'), '/AA/ID') fro...
32
-
^
30
+
extract
31
+
------------
32
+
<ID>1</ID>
33
+
(1 row)
34
+
33
35
SELECT extract(XMLType('<AA><ID>1</ID></AA>'), '/AA') from dual;
34
-
ERROR: syntax error at or near "("
35
-
LINE 1: SELECT extract(XMLType('<AA><ID>1</ID></AA>'), '/AA') from d...
36
-
^
36
+
extract
37
+
--------------
38
+
<AA> +
39
+
<ID>1</ID>+
40
+
</AA>
41
+
(1 row)
42
+
37
43
SELECT extract(XMLType('<Co Attr ="Test Attr"><ID>1</ID></Co>'), '/Co') from dual;
38
-
ERROR: syntax error at or near "("
39
-
LINE 1: SELECT extract(XMLType('<Co Attr ="Test Attr"><ID>1</ID></Co...
40
-
^
44
+
extract
45
+
-----------------------
46
+
<Co Attr="Test Attr">+
47
+
<ID>1</ID> +
48
+
</Co>
49
+
(1 row)
50
+
41
51
SELECT extract(XMLType('<Co Attr ="Test Attr"><ID>1</ID></Co>'), '/Co/@ Attr') from dual;
42
-
ERROR: syntax error at or near "("
43
-
LINE 1: SELECT extract(XMLType('<Co Attr ="Test Attr"><ID>1</ID></Co...
44
-
^
52
+
extract
53
+
-----------
54
+
Test Attr
55
+
(1 row)
56
+
45
57
SELECT extract(XMLType('<a><b>b1</b><b>b2</b></a>'),'/a/b[2]') from dual;
46
-
ERROR: syntax error at or near "("
47
-
LINE 1: SELECT extract(XMLType('<a><b>b1</b><b>b2</b></a>'),'/a/b[2]...
48
-
^
58
+
extract
59
+
-----------
60
+
<b>b2</b>
61
+
(1 row)
62
+
49
63
SELECT extract(XMLType('<a><b>b1</b><b>b2</b></a>'),'/a/b[3]') from dual;
50
-
ERROR: syntax error at or near "("
51
-
LINE 1: SELECT extract(XMLType('<a><b>b1</b><b>b2</b></a>'),'/a/b[3]...
52
-
^
64
+
extract
65
+
---------
66
+
67
+
(1 row)
68
+
53
69
SELECT extract(b, '/a/b') from inaf where a = 2;
54
-
ERROR: syntax error at or near ","
55
-
LINE 1: SELECT extract(b, '/a/b') from inaf where a = 2;
56
-
^
70
+
extract
71
+
---------
72
+
73
+
(1 row)
74
+
57
75
SELECT extract(XMLType('<a><b>b1</b><b>b2</b></a>'),'') from dual;
58
-
ERROR: syntax error at or near "("
59
-
LINE 1: SELECT extract(XMLType('<a><b>b1</b><b>b2</b></a>'),'') from...
60
-
^
76
+
extract
77
+
---------
78
+
79
+
(1 row)
80
+
61
81
SELECT extract(XMLType('<a><b>b1</b><b>b2</b></a>'),null) from dual;
62
-
ERROR: syntax error at or near "("
63
-
LINE 1: SELECT extract(XMLType('<a><b>b1</b><b>b2</b></a>'),null) fr...
64
-
^
82
+
extract
83
+
---------
84
+
85
+
(1 row)
86
+
65
87
SELECT extract(data, 'soapenv:Envelope/soapenv:Body/web:BBB/typ:EEE', 'xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:typ="http://www.def.com" xmlns:web="http://www.abc.com"') from xmlnstest where id = 1;
66
-
ERROR: syntax error at or near "data"
67
-
LINE 1: SELECT extract(data, 'soapenv:Envelope/soapenv:Body/web:BBB/...
0 commit comments