~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/func_in.result

  • Committer: Brian Aker
  • Date: 2009-07-12 00:49:18 UTC
  • mfrom: (1063.9.51 brian-tmp-fix)
  • Revision ID: brian@gaz-20090712004918-chprmyj387ex6l8a
Merge Stewart

Show diffs side-by-side

added added

removed removed

Lines of Context:
216
216
44
217
217
46
218
218
DROP TABLE t1;
219
 
create table t1 (a int) ENGINE=MYISAM;
 
219
create table t1 (a int);
220
220
insert into t1 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
221
 
create table t2 (a int, filler char(200), key(a)) ENGINE=MYISAM;
 
221
create temporary table t2 (a int, filler char(200), key(a)) engine=myisam;
222
222
insert into t2 select C.a*2,   'no'  from t1 A, t1 B, t1 C;
223
223
insert into t2 select C.a*2+1, 'yes' from t1 C;
224
224
explain 
463
463
Error   1365    Division by 0
464
464
DROP TABLE t1;
465
465
End of 5.0 tests
466
 
create table t1(f1 char(1)) ENGINE=MYISAM;
 
466
create TEMPORARY table t1(f1 char(1)) ENGINE=MYISAM;
467
467
insert into t1 values ('a'),('b'),('1');
468
468
select f1 from t1 where f1 in ('a',1);
469
469
f1
495
495
explain select f1 from t1 where f1 in (2,1);
496
496
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
497
497
1       SIMPLE  t1      index   t1f1_idx        t1f1_idx        7       NULL    3       Using where; Using index
498
 
create table t2(f2 int, index t2f2(f2)) ENGINE=MYISAM;
 
498
create TEMPORARY table t2(f2 int, index t2f2(f2)) ENGINE=MYISAM;
499
499
insert into t2 values(0),(1),(2);
500
500
select f2 from t2 where f2 in ('a',2);
501
501
f2