1
by brian
clean slate |
1 |
# Test of the xml output of the 'mysql' and 'mysqldump' clients -- makes |
2 |
# sure that basic encoding issues are handled properly |
|
3 |
create table t1 ( |
|
4 |
`a&b` int, |
|
5 |
`a<b` int, |
|
6 |
`a>b` text |
|
7 |
);
|
|
8 |
insert into t1 values (1, 2, 'a&b a<b a>b'); |
|
9 |
--exec $MYSQL --xml test -e "select * from t1"
|
|
10 |
--exec $MYSQL_DUMP --xml --skip-create test
|
|
11 |
||
12 |
--exec $MYSQL --xml test -e "select count(*) from t1"
|
|
13 |
--exec $MYSQL --xml test -e "select 1 < 2 from dual"
|
|
14 |
--exec $MYSQL --xml test -e "select 1 > 2 from dual"
|
|
15 |
--exec $MYSQL --xml test -e "select 1 & 3 from dual"
|
|
16 |
--exec $MYSQL --xml test -e "select null from dual"
|
|
17 |
--exec $MYSQL --xml test -e "select 1 limit 0"
|
|
18 |
--exec $MYSQL --xml test -vv -e "select 1 limit 0"
|
|
19 |
||
20 |
drop table t1; |