~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/blitzdb/tests/r/blitzdb-index.result

  • Committer: Monty Taylor
  • Date: 2010-09-16 23:12:30 UTC
  • mto: (1775.1.1 build)
  • mto: This revision was merged to the branch mainline in revision 1773.
  • Revision ID: mordred@inaugust.com-20100916231230-uchkqks21rwzbmpz
Include files in tarball that were being left out.

Show diffs side-by-side

added added

removed removed

Lines of Context:
480
480
1984-09-25      23      twenty five
481
481
explain select * from t1 where a = '1984-09-22';
482
482
id      select_type     table   type    possible_keys   key     key_len ref     rows    Extra
483
 
1       SIMPLE  t1      const   PRIMARY PRIMARY 4       const   1       
 
483
1       SIMPLE  t1      const   PRIMARY PRIMARY 3       const   1       
484
484
select * from t1 where a = '1984-09-22';
485
485
a       b       c
486
486
1984-09-22      22      twenty two
895
895
count(*)
896
896
0
897
897
drop table t1;
898
 
create table t1 (a varchar(32), index(a)) engine = blitzdb;
899
 
insert into t1 values ('ccc'), ('bbb'), ('aaa');
900
 
insert into t1 values ('eee'), ('ddd'), ('fff');
901
 
select * from t1;
902
 
a
903
 
aaa
904
 
bbb
905
 
ccc
906
 
ddd
907
 
eee
908
 
fff
909
 
select * from t1 where a = 'aaa';
910
 
a
911
 
aaa
912
 
select * from t1 where a = 'bbb';
913
 
a
914
 
bbb
915
 
select * from t1 where a = 'ccc';
916
 
a
917
 
ccc
918
 
select * from t1 where a = 'ddd';
919
 
a
920
 
ddd
921
 
select * from t1 where a = 'eee';
922
 
a
923
 
eee
924
 
delete from t1 where a = 'ddd';
925
 
delete from t1 where a = 'eee';
926
 
select * from t1;
927
 
a
928
 
aaa
929
 
bbb
930
 
ccc
931
 
fff
932
 
select count(*) from t1;
933
 
count(*)
934
 
4
935
 
drop table t1;
936
898
create table t1 (a int, b int, unique index(a)) engine = blitzdb;
937
899
insert into t1 values (NULL, 1), (NULL, 2), (NULL, 3), (NULL, 4);
938
900
select * from t1;