~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/csv/tests/t/basic.test

  • Committer: Monty Taylor
  • Date: 2011-02-13 17:26:39 UTC
  • mfrom: (2157.2.2 give-in-to-pkg-config)
  • mto: This revision was merged to the branch mainline in revision 2166.
  • Revision ID: mordred@inaugust.com-20110213172639-nhy7i72sfhoq13ms
Merged in pkg-config fixes.

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