mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 20:42:30 +01:00
ca1fd91f16
- make sure to disable bulk insert when check for duplicate key is needed mysql-test/r/ndb_loaddatalocal.result: New BitKeeper file ``mysql-test/r/ndb_loaddatalocal.result'' mysql-test/t/ndb_loaddatalocal.test: New BitKeeper file ``mysql-test/t/ndb_loaddatalocal.test''
46 lines
1.5 KiB
Text
46 lines
1.5 KiB
Text
DROP TABLE IF EXISTS t1;
|
|
create table t1(a int) engine=myisam;
|
|
select * into outfile 'MYSQLTEST_VARDIR/master-data/ndb_loaddatalocal.select_outfile' from t1;
|
|
drop table t1;
|
|
create table t1(a int) engine=ndb;
|
|
load data local infile 'MYSQLTEST_VARDIR/master-data/ndb_loaddatalocal.select_outfile' into table t1;
|
|
select count(*) from t1;
|
|
count(*)
|
|
10000
|
|
drop table t1;
|
|
create table t1(a int) engine=myisam;
|
|
insert into t1 values (1), (2), (2), (3);
|
|
select * into outfile 'MYSQLTEST_VARDIR/master-data/ndb_loaddatalocal.select_outfile' from t1;
|
|
drop table t1;
|
|
create table t1(a int primary key) engine=ndb;
|
|
load data local infile 'MYSQLTEST_VARDIR/master-data/ndb_loaddatalocal.select_outfile' into table t1;
|
|
select * from t1 order by a;
|
|
a
|
|
1
|
|
2
|
|
3
|
|
drop table t1;
|
|
create table t1(a int) engine=myisam;
|
|
insert into t1 values (1), (1), (2), (3);
|
|
select * into outfile 'MYSQLTEST_VARDIR/master-data/ndb_loaddatalocal.select_outfile' from t1;
|
|
drop table t1;
|
|
create table t1(a int primary key) engine=ndb;
|
|
load data local infile 'MYSQLTEST_VARDIR/master-data/ndb_loaddatalocal.select_outfile' into table t1;
|
|
select * from t1 order by a;
|
|
a
|
|
1
|
|
2
|
|
3
|
|
drop table t1;
|
|
create table t1(a int) engine=myisam;
|
|
insert into t1 values (1), (2), (3), (3);
|
|
select * into outfile 'MYSQLTEST_VARDIR/master-data/ndb_loaddatalocal.select_outfile' from t1;
|
|
drop table t1;
|
|
create table t1(a int primary key) engine=ndb;
|
|
load data local infile 'MYSQLTEST_VARDIR/master-data/ndb_loaddatalocal.select_outfile' into table t1;
|
|
select * from t1 order by a;
|
|
a
|
|
1
|
|
2
|
|
3
|
|
drop table t1;
|