~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/blitzdb/tests/t/blitzdb-index.test

  • Committer: Andrew Hutchings
  • Date: 2010-09-06 20:47:28 UTC
  • mto: (1747.1.3 build)
  • mto: This revision was merged to the branch mainline in revision 1748.
  • Revision ID: andrew@linuxjedi.co.uk-20100906204728-8qjwkx638e5lsm1q
Timestamp cannot reliably store leap seconds, so don't try.  Leave that to datetime only

Show diffs side-by-side

added added

removed removed

Lines of Context:
476
476
select count(*) from t1;
477
477
drop table t1;
478
478
 
479
 
# +-----------------+
480
 
# | INDEX: VARTEXT1 |
481
 
# +-----------------+
482
 
create table t1 (a varchar(32), index(a)) engine = blitzdb;
483
 
insert into t1 values ('ccc'), ('bbb'), ('aaa');
484
 
insert into t1 values ('eee'), ('ddd'), ('fff');
485
 
--sorted_result
486
 
select * from t1;
487
 
select * from t1 where a = 'aaa';
488
 
select * from t1 where a = 'bbb';
489
 
select * from t1 where a = 'ccc';
490
 
select * from t1 where a = 'ddd';
491
 
select * from t1 where a = 'eee';
492
 
delete from t1 where a = 'ddd';
493
 
delete from t1 where a = 'eee';
494
 
select * from t1;
495
 
select count(*) from t1;
496
 
drop table t1;
497
 
 
498
479
# +------------------------------+
499
480
# | UNIQUE INDEX: DUPLICATE NULL |
500
481
# +------------------------------+