~drizzle-trunk/drizzle/development

1 by brian
clean slate
1
# Test if the engine does autocommit in LOAD DATA INFILE, or not
2
# (NDB wants to do, others don't).
3
4
eval SET SESSION STORAGE_ENGINE = $engine_type;
5
6
--disable_warnings
7
drop table if exists t1;
8
--enable_warnings
9
10
# NDB does not support the create option 'Binlog of table with BLOB attribute and no PK'
11
# So use a dummy PK here.
413.2.2 by Brian Aker
Removed UNSIGNED from parser.
12
create table t1 (id int not null auto_increment primary key, a text, b text);
1 by brian
clean slate
13
start transaction;
1878.8.1 by patrick crews
Updated tests to use variable vardir rather than a hard-coded one
14
--replace_result $DRIZZLETEST_VARDIR DRIZZLETEST_VARDIR
15
eval load data infile '$DRIZZLETEST_VARDIR/std_data_ln/loaddata2.dat' into table t1 fields terminated by ',' enclosed by '''' (a, b);
1 by brian
clean slate
16
commit;
17
select count(*) from t1;
18
truncate table t1;
19
start transaction;
1878.8.1 by patrick crews
Updated tests to use variable vardir rather than a hard-coded one
20
--replace_result $DRIZZLETEST_VARDIR DRIZZLETEST_VARDIR
21
eval load data infile '$DRIZZLETEST_VARDIR/std_data_ln/loaddata2.dat' into table t1 fields terminated by ',' enclosed by '''' (a, b);
1 by brian
clean slate
22
rollback;
23
select count(*) from t1;
24
25
drop table t1;