~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

Viewing changes to mysql-test/suite/ndb/r/ndb_loaddatalocal.result

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Tretkowski
  • Date: 2010-03-17 14:56:02 UTC
  • Revision ID: james.westby@ubuntu.com-20100317145602-x7e30l1b2sb5s6w6
Tags: upstream-5.1.45
ImportĀ upstreamĀ versionĀ 5.1.45

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
DROP TABLE IF EXISTS t1;
 
2
create table t1(a int) engine=myisam;
 
3
select * into outfile 'MYSQLD_DATADIR/ndb_loaddatalocal.select_outfile' from t1;
 
4
drop table t1;
 
5
create table t1(a int) engine=ndb;
 
6
load data local infile 'MYSQLD_DATADIR/ndb_loaddatalocal.select_outfile' into table t1;
 
7
select count(*) from t1;
 
8
count(*)
 
9
10000
 
10
drop table t1;
 
11
create table t1(a int) engine=myisam;
 
12
insert into t1 values (1), (2), (2), (3);
 
13
select * into outfile 'MYSQLD_DATADIR/ndb_loaddatalocal.select_outfile' from t1;
 
14
drop table t1;
 
15
create table t1(a int primary key) engine=ndb;
 
16
load data local infile 'MYSQLD_DATADIR/ndb_loaddatalocal.select_outfile' into table t1;
 
17
select * from t1 order by a;
 
18
a
 
19
1
 
20
2
 
21
3
 
22
drop table t1;
 
23
create table t1(a int) engine=myisam;
 
24
insert into t1 values (1), (1), (2), (3);
 
25
select * into outfile 'MYSQLD_DATADIR/ndb_loaddatalocal.select_outfile' from t1;
 
26
drop table t1;
 
27
create table t1(a int primary key) engine=ndb;
 
28
load data local infile 'MYSQLD_DATADIR/ndb_loaddatalocal.select_outfile' into table t1;
 
29
select * from t1 order by a;
 
30
a
 
31
1
 
32
2
 
33
3
 
34
drop table t1;
 
35
create table t1(a int) engine=myisam;
 
36
insert into t1 values (1), (2), (3), (3);
 
37
select * into outfile 'MYSQLD_DATADIR/ndb_loaddatalocal.select_outfile' from t1;
 
38
drop table t1;
 
39
create table t1(a int primary key) engine=ndb;
 
40
load data local infile 'MYSQLD_DATADIR/ndb_loaddatalocal.select_outfile' into table t1;
 
41
select * from t1 order by a;
 
42
a
 
43
1
 
44
2
 
45
3
 
46
drop table t1;