2008-04-30 15:28:19 +02:00
|
|
|
set @old_concurrent_insert= @@global.concurrent_insert;
|
|
|
|
set @@global.concurrent_insert= 0;
|
2008-07-18 11:07:16 +02:00
|
|
|
drop table if exists t1;
|
2005-01-25 23:25:40 +01:00
|
|
|
create table t1 (
|
|
|
|
`a&b` int,
|
2017-06-29 00:57:20 +02:00
|
|
|
`a<b` int NOT NULL,
|
2005-01-25 23:25:40 +01:00
|
|
|
`a>b` text
|
|
|
|
);
|
|
|
|
insert into t1 values (1, 2, 'a&b a<b a>b');
|
|
|
|
<?xml version="1.0"?>
|
|
|
|
|
|
|
|
<resultset statement="select * from t1
|
2007-03-27 10:30:43 +02:00
|
|
|
" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
2005-01-25 23:25:40 +01:00
|
|
|
<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"?>
|
2005-06-27 12:25:15 +02:00
|
|
|
<mysqldump xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
2005-01-25 23:25:40 +01:00
|
|
|
<database name="test">
|
|
|
|
<table_structure name="t1">
|
2017-06-29 00:57:20 +02:00
|
|
|
<field Field="a&b" Type="int(11)" Null="YES" Key="" Default="NULL" Extra="" Comment="" />
|
|
|
|
<field Field="a<b" Type="int(11)" Null="NO" Key="" Extra="" Comment="" />
|
|
|
|
<field Field="a>b" Type="text" Null="YES" Key="" Default="NULL" Extra="" Comment="" />
|
2005-01-25 23:25:40 +01:00
|
|
|
</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
|
2007-03-27 10:30:43 +02:00
|
|
|
" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
2005-01-25 23:25:40 +01:00
|
|
|
<row>
|
|
|
|
<field name="count(*)">1</field>
|
|
|
|
</row>
|
|
|
|
</resultset>
|
|
|
|
<?xml version="1.0"?>
|
|
|
|
|
|
|
|
<resultset statement="select 1 < 2 from dual
|
2007-03-27 10:30:43 +02:00
|
|
|
" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
2005-01-25 23:25:40 +01:00
|
|
|
<row>
|
|
|
|
<field name="1 < 2">1</field>
|
|
|
|
</row>
|
|
|
|
</resultset>
|
|
|
|
<?xml version="1.0"?>
|
|
|
|
|
|
|
|
<resultset statement="select 1 > 2 from dual
|
2007-03-27 10:30:43 +02:00
|
|
|
" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
2005-01-25 23:25:40 +01:00
|
|
|
<row>
|
|
|
|
<field name="1 > 2">0</field>
|
|
|
|
</row>
|
|
|
|
</resultset>
|
|
|
|
<?xml version="1.0"?>
|
|
|
|
|
|
|
|
<resultset statement="select 1 & 3 from dual
|
2007-03-27 10:30:43 +02:00
|
|
|
" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
2005-01-25 23:25:40 +01:00
|
|
|
<row>
|
|
|
|
<field name="1 & 3">1</field>
|
|
|
|
</row>
|
|
|
|
</resultset>
|
|
|
|
<?xml version="1.0"?>
|
|
|
|
|
|
|
|
<resultset statement="select null from dual
|
2007-03-27 10:30:43 +02:00
|
|
|
" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
2005-01-25 23:25:40 +01:00
|
|
|
<row>
|
2006-09-29 13:29:39 +02:00
|
|
|
<field name="NULL" xsi:nil="true" />
|
2005-01-25 23:25:40 +01:00
|
|
|
</row>
|
|
|
|
</resultset>
|
2007-04-09 14:53:10 +02:00
|
|
|
<?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
|
2005-01-25 23:25:40 +01:00
|
|
|
drop table t1;
|
2008-04-30 15:28:19 +02:00
|
|
|
set @@global.concurrent_insert= @old_concurrent_insert;
|