~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/csv_not_null.result

  • Committer: devananda
  • Date: 2009-06-30 14:27:54 UTC
  • mfrom: (1030.2.4 trunk)
  • mto: (1093.1.7 captain)
  • mto: This revision was merged to the branch mainline in revision 1095.
  • Revision ID: devananda.vdv@gmail.com-20090630142754-vm9w374yxkf1pikc
mergeĀ fromĀ lp

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
Note    1051    Unknown table 't1'
5
5
Note    1051    Unknown table 't2'
6
6
# === Will fail -- no NOT NULL ===
7
 
CREATE TABLE t1 (a int) ENGINE = CSV;
 
7
CREATE TEMPORARY TABLE t1 (a int) ENGINE = CSV;
8
8
ERROR 42000: The storage engine for the table doesn't support nullable columns
9
9
# === Good CREATE ===
10
 
CREATE TABLE t1 (a int NOT NULL) ENGINE = CSV;
 
10
CREATE TEMPORARY TABLE t1 (a int NOT NULL) ENGINE = CSV;
11
11
# === Will fail -- ALL columns need NOT NULL ==
12
 
CREATE TABLE t2 (a int NOT NULL, b char(20)) ENGINE = CSV;
 
12
CREATE TEMPORARY TABLE t2 (a int NOT NULL, b char(20)) ENGINE = CSV;
13
13
ERROR 42000: The storage engine for the table doesn't support nullable columns
14
14
DROP TABLE t1;
15
15
# ===== csv_not_null.2 =====
16
16
DROP TABLE IF EXISTS t1;
17
17
Warnings:
18
18
Note    1051    Unknown table 't1'
19
 
CREATE TABLE t1 (a int NOT NULL, b blob NOT NULL, c CHAR(20) NOT NULL, 
 
19
CREATE TEMPORARY TABLE t1 (a int NOT NULL, b blob NOT NULL, c CHAR(20) NOT NULL, 
20
20
d VARCHAR(20) NOT NULL, e enum('foo','bar') NOT NULL,f DATE NOT NULL) 
21
21
ENGINE = CSV;
22
22
INSERT INTO t1 VALUES();
40
40
DROP TABLE IF EXISTS t1;
41
41
Warnings:
42
42
Note    1051    Unknown table 't1'
43
 
CREATE TABLE t1 (a int NOT NULL, b char(10) NOT NULL) ENGINE = CSV;
 
43
CREATE TEMPORARY TABLE t1 (a int NOT NULL, b char(10) NOT NULL) ENGINE = CSV;
44
44
INSERT INTO t1 VALUES();
45
45
ERROR HY000: Field 'a' doesn't have a default value
46
46
insert into t1 values (0,"");