~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/null_key.test

  • Committer: Padraig O'Sullivan
  • Date: 2009-09-18 00:22:38 UTC
  • mto: This revision was merged to the branch mainline in revision 1139.
  • Revision ID: osullivan.padraig@gmail.com-20090918002238-zq7mui4r2yzoidz1
Extracted KeyUse into its own header file and placed it within the
drizzled::optimizer namespace.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
select * from t1 where a is null and b=9 or a is null and b=7 limit 3;
29
29
select * from t1 where a > 1 and a < 3 limit 1;
30
30
select * from t1 where a > 8 and a < 9;
31
 
--error ER_CANT_CREATE_TABLE
32
31
create table t2 like t1;
33
 
create temporary table t2 like t1;
34
 
show create table t2;
35
32
insert into t2 select * from t1;
36
 
alter table t1 modify b blob not null, add c int DEFAULT 42 not null, drop key a, add unique key (a,b(20),c), drop key b, add key (b(10));
 
33
alter table t1 modify b blob not null, add c int not null, drop key a, add unique key (a,b(20),c), drop key b, add key (b(10));
37
34
# @TODO Should this be a MyISAM-specific test or not?
38
35
# Ignore "rows" in output -- inaccurate for InnoDB
39
36
--replace_column 9 X
230
227
  index (id),
231
228
  index (id2)
232
229
);
233
 
--error ER_BAD_NULL_ERROR
 
230
--error 1048
234
231
insert into t1 values(null,null),(1,1);
235
232
select * from t1;
236
233
select * from t1 where id <=> null;