~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/type_enum.result

enable subselect_not, subselect_no_mat and variables tests, some other misc clean up on other tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
1755
1755
CREATE TABLE t1(a enum('a','b','c','d'));
1756
1756
INSERT INTO t1 VALUES (4),(1),(0),(3);
1757
1757
ERROR 01000: Data truncated for column 'a' at row 3
 
1758
INSERT INTO t1 VALUES (4),(1),(2),(3);
1758
1759
SELECT a FROM t1;
1759
1760
a
 
1761
d
 
1762
a
 
1763
b
 
1764
c
1760
1765
EXPLAIN SELECT a FROM t1 WHERE a=0;
1761
1766
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
1762
 
1       SIMPLE  t1      ALL     NULL    NULL    NULL    NULL    2       Using where
 
1767
1       SIMPLE  t1      ALL     NULL    NULL    NULL    NULL    6       Using where
1763
1768
SELECT a FROM t1 WHERE a=0;
1764
1769
a
1765
1770
ALTER TABLE t1 ADD PRIMARY KEY (a);