1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
create table t1 (
`a&b` int,
`a<b` int,
`a>b` text
);
insert into t1 values (1, 2, 'a&b a<b a>b');
<?xml version="1.0"?>
<resultset statement="select * from t1
" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<row>
<field name="a&b">1</field>
<field name="a<b">2</field>
<field name="a>b">a&b a<b a>b</field>
</row>
</resultset>
<?xml version="1.0"?>
<mysqldump xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
--
-- Not dumping tablespaces as no INFORMATION_SCHEMA.FILES table on this server
--
<database name="test">
<table_structure name="t1">
<field Field="a&b" Type="int(11)" Null="YES" Key="" Extra="" />
<field Field="a<b" Type="int(11)" Null="YES" Key="" Extra="" />
<field Field="a>b" Type="text" Null="YES" Key="" Extra="" />
</table_structure>
<table_data name="t1">
<row>
<field name="a&b">1</field>
<field name="a<b">2</field>
<field name="a>b">a&b a<b a>b</field>
</row>
</table_data>
</database>
</mysqldump>
<?xml version="1.0"?>
<resultset statement="select count(*) from t1
" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<row>
<field name="count(*)">1</field>
</row>
</resultset>
<?xml version="1.0"?>
<resultset statement="select 1 < 2 from dual
" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<row>
<field name="1 < 2">1</field>
</row>
</resultset>
<?xml version="1.0"?>
<resultset statement="select 1 > 2 from dual
" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<row>
<field name="1 > 2">0</field>
</row>
</resultset>
<?xml version="1.0"?>
<resultset statement="select 1 & 3 from dual
" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<row>
<field name="1 & 3">1</field>
</row>
</resultset>
<?xml version="1.0"?>
<resultset statement="select null from dual
" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<row>
<field name="NULL" xsi:nil="true" />
</row>
</resultset>
<?xml version="1.0"?>
<resultset statement="select 1 limit 0
" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"></resultset>
--------------
select 1 limit 0
--------------
<?xml version="1.0"?>
<resultset statement="select 1 limit 0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"></resultset>
Empty set
Bye
drop table t1;
|