~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/heap_hash.result

  • Committer: Brian Aker
  • Date: 2010-07-12 06:26:42 UTC
  • Revision ID: brian@gaz-20100712062642-6flofbshd9rfbi0c
MErge in change to do YES/NO like standard requires.

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
#       test    t1      TEMPORARY       MEMORY  #       #       #       #       #
8
8
show keys from t1;
9
9
Table   Unique  Key_name        Seq_in_index    Column_name
10
 
t1      TRUE    PRIMARY 1       a
 
10
t1      YES     PRIMARY 1       a
11
11
select * from t1;
12
12
a       b
13
13
2       2
327
327
1       SIMPLE  t1      ref     heap_idx        heap_idx        82      const   9       Using where
328
328
show index from t1;
329
329
Table   Unique  Key_name        Seq_in_index    Column_name
330
 
t1      TRUE    PRIMARY 1       id
331
 
t1      FALSE   heap_idx        1       name
332
 
t1      FALSE   btree_idx       1       name
 
330
t1      YES     PRIMARY 1       id
 
331
t1      NO      heap_idx        1       name
 
332
t1      NO      btree_idx       1       name
333
333
show index from t1;
334
334
Table   Unique  Key_name        Seq_in_index    Column_name
335
 
t1      TRUE    PRIMARY 1       id
336
 
t1      FALSE   heap_idx        1       name
337
 
t1      FALSE   btree_idx       1       name
 
335
t1      YES     PRIMARY 1       id
 
336
t1      NO      heap_idx        1       name
 
337
t1      NO      btree_idx       1       name
338
338
create temporary table t3
339
339
(
340
340
a varchar(20) not null,
344
344
insert into t3 select name, name from t1;
345
345
show index from t3;
346
346
Table   Unique  Key_name        Seq_in_index    Column_name
347
 
t3      FALSE   a       1       a
348
 
t3      FALSE   a       2       b
 
347
t3      NO      a       1       a
 
348
t3      NO      a       2       b
349
349
show index from t3;
350
350
Table   Unique  Key_name        Seq_in_index    Column_name
351
 
t3      FALSE   a       1       a
352
 
t3      FALSE   a       2       b
 
351
t3      NO      a       1       a
 
352
t3      NO      a       2       b
353
353
explain select * from t1 ignore key(btree_idx), t3 where t1.name='matt' and t3.a = concat('',t1.name) and t3.b=t1.name;
354
354
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
355
355
1       SIMPLE  t1      ref     heap_idx        heap_idx        82      const   9       Using where