~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/suite/bool_type/r/default.result

  • Committer: Olaf van der Spek
  • Date: 2011-02-28 14:09:50 UTC
  • mfrom: (2207 bootstrap)
  • mto: (2209.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 2210.
  • Revision ID: olafvdspek@gmail.com-20110228140950-2nu0hyzhuww3wssx
Merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
CREATE TABLE t1 (A BOOLEAN DEFAULT TRUE);
 
2
SHOW CREATE TABLE t1;
 
3
Table   Create Table
 
4
t1      CREATE TABLE `t1` (
 
5
  `A` BOOLEAN DEFAULT 'TRUE'
 
6
) ENGINE=InnoDB COLLATE = utf8_general_ci
 
7
INSERT INTO t1 VALUES ();
 
8
SELECT A FROM t1;
 
9
A
 
10
TRUE
 
11
DROP TABLE t1;
 
12
CREATE TABLE t1 (A BOOLEAN DEFAULT FALSE);
 
13
SHOW CREATE TABLE t1;
 
14
Table   Create Table
 
15
t1      CREATE TABLE `t1` (
 
16
  `A` BOOLEAN DEFAULT 'FALSE'
 
17
) ENGINE=InnoDB COLLATE = utf8_general_ci
 
18
INSERT INTO t1 VALUES ();
 
19
SELECT A FROM t1;
 
20
A
 
21
FALSE
 
22
DROP TABLE t1;
 
23
CREATE TABLE t1 (A BOOLEAN DEFAULT NULL);
 
24
SHOW CREATE TABLE t1;
 
25
Table   Create Table
 
26
t1      CREATE TABLE `t1` (
 
27
  `A` BOOLEAN DEFAULT NULL
 
28
) ENGINE=InnoDB COLLATE = utf8_general_ci
 
29
INSERT INTO t1 VALUES ();
 
30
SELECT A FROM t1;
 
31
A
 
32
NULL
 
33
DROP TABLE t1;
 
34
CREATE TABLE t1 (A BOOLEAN DEFAULT "");
 
35
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near '"")' at line 1
 
36
CREATE TABLE t1 (A BOOLEAN DEFAULT "false");
 
37
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near '"false")' at line 1
 
38
CREATE TABLE t1 (A BOOLEAN DEFAULT 0);
 
39
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near '0)' at line 1
 
40
CREATE TABLE t1 (A BOOLEAN DEFAULT 1);
 
41
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your Drizzle server version for the right syntax to use near '1)' at line 1