2005-04-04 21:43:58 +02:00
|
|
|
# Can't run with embedded server
|
|
|
|
-- source include/not_embedded.inc
|
|
|
|
|
2005-01-25 23:25:40 +01:00
|
|
|
# Test of the xml output of the 'mysql' and 'mysqldump' clients -- makes
|
|
|
|
# sure that basic encoding issues are handled properly
|
|
|
|
create table t1 (
|
|
|
|
`a&b` int,
|
|
|
|
`a<b` int,
|
|
|
|
`a>b` text
|
|
|
|
);
|
|
|
|
insert into t1 values (1, 2, 'a&b a<b a>b');
|
2006-02-17 12:07:45 +01:00
|
|
|
--exec $MYSQL --xml test -e "select * from t1"
|
2005-02-01 03:48:42 +01:00
|
|
|
--exec $MYSQL_DUMP --xml --skip-create test
|
2005-01-25 23:25:40 +01:00
|
|
|
|
2006-02-17 12:07:45 +01:00
|
|
|
--exec $MYSQL --xml test -e "select count(*) from t1"
|
|
|
|
--exec $MYSQL --xml test -e "select 1 < 2 from dual"
|
|
|
|
--exec $MYSQL --xml test -e "select 1 > 2 from dual"
|
|
|
|
--exec $MYSQL --xml test -e "select 1 & 3 from dual"
|
|
|
|
--exec $MYSQL --xml test -e "select null from dual"
|
2005-01-25 23:25:40 +01:00
|
|
|
|
|
|
|
drop table t1;
|