1
drop table if exists t1;
2
create table t1 (a int, b varchar(64));
3
-- Load a static XML file
4
load xml infile '../std_data_ln/loadxml.dat' into table t1
5
rows identified by '<row>';
6
select * from t1 order by a;
13
112 b112 & < > " ' &unknown; -- check entities
20
-- Load a static XML file with 'IGNORE num ROWS'
21
load xml infile '../std_data_ln/loadxml.dat' into table t1
22
rows identified by '<row>' ignore 4 rows;
23
select * from t1 order by a;
26
112 b112 & < > " ' &unknown; -- check entities
32
-- Check 'mysqldump --xml' + 'LOAD XML' round trip
34
load xml infile 'MYSQLTEST_VARDIR/loadxml-dump.xml' into table t1 rows identified by '<row>';;
35
select * from t1 order by a;
38
112 b112 & < > " ' &unknown; -- check entities
44
--Check that default row tag is '<row>
46
load xml infile 'MYSQLTEST_VARDIR/loadxml-dump.xml' into table t1;;
47
select * from t1 order by a;
50
112 b112 & < > " ' &unknown; -- check entities
56
-- Check that 'xml' is not a keyword