Navigation Menu

Skip to content

Commit

Permalink
added primary key EQ search.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tetsuro IKEDA committed Jul 2, 2010
1 parent 0c967d0 commit 871b2a9
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
30 changes: 30 additions & 0 deletions test/sql/r/select_pkey.result
@@ -0,0 +1,30 @@
install plugin mroonga soname 'libmroonga.so';
set storage_engine=mroonga;
drop table if exists t1, t2, t3;
create table t1(c1 int primary key, c2 int, c3 int);
insert into t1 values (1, 10, 100);
insert into t1 values (2, 30, 500);
insert into t1 values (5, 20, 200);
insert into t1 values (3, 60, 300);
insert into t1 values (4, 50, 600);
insert into t1 values (6, 40, 400);
select * from t1 where c1=1;
c1 c2 c3
1 10 100
select * from t1 where c1=2;
c1 c2 c3
2 30 500
select * from t1 where c1=3;
c1 c2 c3
3 60 300
select * from t1 where c1=4;
c1 c2 c3
4 50 600
select * from t1 where c1=5;
c1 c2 c3
5 20 200
select * from t1 where c1=6;
c1 c2 c3
6 40 400
drop table t1;
uninstall plugin mroonga;
26 changes: 26 additions & 0 deletions test/sql/t/select_pkey.test
@@ -0,0 +1,26 @@
--disable_warnings
install plugin mroonga soname 'libmroonga.so';
set storage_engine=mroonga;
drop table if exists t1, t2, t3;
--enable_warnings

create table t1(c1 int primary key, c2 int, c3 int);
insert into t1 values (1, 10, 100);
insert into t1 values (2, 30, 500);
insert into t1 values (5, 20, 200);
insert into t1 values (3, 60, 300);
insert into t1 values (4, 50, 600);
insert into t1 values (6, 40, 400);

select * from t1 where c1=1;
select * from t1 where c1=2;
select * from t1 where c1=3;
select * from t1 where c1=4;
select * from t1 where c1=5;
select * from t1 where c1=6;

drop table t1;

--disable_warnings
uninstall plugin mroonga;
--enable_warnings

0 comments on commit 871b2a9

Please sign in to comment.