~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysql-test/r/loadxml.result

  • Committer: Monty Taylor
  • Date: 2008-10-16 06:32:30 UTC
  • mto: (511.1.5 codestyle)
  • mto: This revision was merged to the branch mainline in revision 521.
  • Revision ID: monty@inaugust.com-20081016063230-4brxsra0qsmsg84q
Added -Wunused-macros.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
drop table if exists t1;
2
 
create table t1 (a int, b varchar(64));
3
 
load xml infile '../std_data_ln/loadxml.dat' into table t1
4
 
rows identified by '<row>';
5
 
select * from t1 order by a;
6
 
a       b
7
 
1       b1
8
 
2       b2
9
 
3       b3
10
 
11      b11
11
 
111     b111
12
 
112     b112 & < > " ' &unknown; -- check entities
13
 
212     b212
14
 
213     b213
15
 
214     b214
16
 
215     b215
17
 
216     &bb b;
18
 
delete from t1;
19
 
load xml infile '../std_data_ln/loadxml.dat' into table t1
20
 
rows identified by '<row>' ignore 4 rows;
21
 
select * from t1 order by a;
22
 
a       b
23
 
111     b111
24
 
112     b112 & < > " ' &unknown; -- check entities
25
 
212     b212
26
 
213     b213
27
 
214     b214
28
 
215     b215
29
 
216     &bb b;
30
 
delete from t1;
31
 
load xml infile 'MYSQLTEST_VARDIR/loadxml-dump.xml' into table t1 rows identified by '<row>';;
32
 
select * from t1 order by a;
33
 
a       b
34
 
111     b111
35
 
112     b112 & < > " ' &unknown; -- check entities
36
 
212     b212
37
 
213     b213
38
 
214     b214
39
 
215     b215
40
 
216     &bb b;
41
 
--Check that default row tag is '<row>
42
 
delete from t1;
43
 
load xml infile 'MYSQLTEST_VARDIR/loadxml-dump.xml' into table t1;;
44
 
select * from t1 order by a;
45
 
a       b
46
 
111     b111
47
 
112     b112 & < > " ' &unknown; -- check entities
48
 
212     b212
49
 
213     b213
50
 
214     b214
51
 
215     b215
52
 
216     &bb b;
53
 
select 1 as xml;
54
 
xml
55
 
1
56
 
drop table t1;