mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 20:42:30 +01:00
6a42c35fa7
Problem: missing initialization, if the previous test fails leaving table t1, client_xml fails as well. Fix: adding initialization.
27 lines
836 B
Text
27 lines
836 B
Text
# Can't run with embedded server
|
|
-- source include/not_embedded.inc
|
|
|
|
--disable_warnings
|
|
drop table if exists t1;
|
|
--enable_warnings
|
|
|
|
# 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');
|
|
--exec $MYSQL --xml test -e "select * from t1"
|
|
--exec $MYSQL_DUMP --xml --skip-create test
|
|
|
|
--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"
|
|
--exec $MYSQL --xml test -e "select 1 limit 0"
|
|
--exec $MYSQL --xml test -vv -e "select 1 limit 0"
|
|
|
|
drop table t1;
|