~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/csv.test

Merge Stewart's dead code removal

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#
 
2
# Test for the CSV engine
 
3
#
 
4
 
 
5
--source include/have_csv.inc
 
6
 
 
7
#
2
8
# Simple select test
3
9
#
4
10
 
1398
1404
#--remove_file $MYSQLTEST_VARDIR/master-data/test/bug15205.CSV
1399
1405
## system error (can't open the datafile)
1400
1406
#--replace_result $MYSQLTEST_VARDIR . master-data/ ''
1401
 
#--error EE_STAT
 
1407
#--error 13
1402
1408
#select * from bug15205;
1403
1409
#select * from bug15205_2;
1404
1410
## Create empty file
1472
1478
# Bug #31473: does not work with NULL value in datetime field
1473
1479
#
1474
1480
create temporary table t1(a datetime not null) engine=csv;
1475
 
--error ER_NO_DEFAULT_FOR_FIELD
 
1481
--error 1364
1476
1482
insert into t1 values();
1477
1483
select * from t1;
1478
1484
drop table t1;
1479
1485
create temporary table t1(a varchar(32) not null) engine=csv;
1480
 
--error ER_NO_DEFAULT_FOR_FIELD
 
1486
--error 1364
1481
1487
insert into t1 values();
1482
1488
select * from t1;
1483
1489
drop table t1;
1484
1490
create temporary table t1(a int not null) engine=csv;
1485
 
--error ER_NO_DEFAULT_FOR_FIELD
 
1491
--error 1364
1486
1492
insert into t1 values();
1487
1493
select * from t1;
1488
1494
drop table t1;
1489
1495
create temporary table t1(a blob not null) engine=csv;
1490
 
--error ER_NO_DEFAULT_FOR_FIELD
 
1496
--error 1364
1491
1497
insert into t1 values();
1492
1498
select * from t1;
1493
1499
drop table t1;