~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/suite/mysql_compatibility/t/bool.test

  • Committer: Brian Aker
  • Date: 2011-02-03 00:52:25 UTC
  • mto: (2139.1.3 drizzle-build)
  • mto: This revision was merged to the branch mainline in revision 2140.
  • Revision ID: brian@tangent.org-20110203005225-bovqok78o3p1528p
Add documentation for BOOL/BOOLEAN type, and add a mysql compatible BOOL for
folks who are porting software.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
CREATE TABLE t1 (A BOOL, B VARCHAR(5));
 
2
SHOW CREATE TABLE t1;
 
3
 
 
4
INSERT INTO t1 VALUES (0, FALSE);
 
5
INSERT INTO t1 VALUES (1, TRUE);
 
6
INSERT INTO t1 VALUES (TRUE, TRUE);
 
7
INSERT INTO t1 VALUES (FALSE, FALSE);
 
8
--sorted_result
 
9
SELECT A,B FROM t1;
 
10
 
 
11
DROP TABLE t1;