init push
This commit is contained in:
28
unittest/sql/plan_cache/test_plan_cache.sql
Normal file
28
unittest/sql/plan_cache/test_plan_cache.sql
Normal file
@ -0,0 +1,28 @@
|
||||
select * from t1 where c1 = 1;
|
||||
select * from t1 where c1 = 1 and c2 = 2;
|
||||
select * from t1 where c1 = 1 and c2 = 3;
|
||||
select c1, c2 from t1 where c1 = 2;
|
||||
select c1, c2 from t1 where c1 = 1;
|
||||
select c1, c2 from t1 where c1 = 1 and c2 = 2 limit 0, 1;
|
||||
select c1 from t1 where c1 = 3;
|
||||
select c1, c2 from t1 where c1 = 4 limit 2, 10;
|
||||
select c1, c2 from t1 where c1 =5 order by c2;
|
||||
select c1 from t1 where c1 = 1;
|
||||
select c1 from t1 where c1 = 2;
|
||||
select c2 from t1 where c1 = 1;
|
||||
select c1 from t2 where c1 = 1;
|
||||
select c2 from t2 where c1 = 1;
|
||||
select c3 from t2 where c1 = 1;
|
||||
select c1, c2 from t2 where c1 = 1;
|
||||
select c1, c3 from t2 where c1 = 1;
|
||||
select c2, c3 from t2 where c1 = 1;
|
||||
select c1, c2, c3 from t2 where c1 = 1;
|
||||
delete from t1 where c2 > 10 and c1 = 2 order by c1 limit 0, 1;
|
||||
#update t1 t set t.c2 = 1 where c2 = 1;
|
||||
#update t3 set c3 = 'test' where c2 = 2;
|
||||
#update t3 set c1 = 2, c3 = 'test' where c2 = 4;
|
||||
#insert into t1 values(1, 2);
|
||||
#insert into t1(c1) values(1), (2);
|
||||
#insert into t2 values(1, 1, 'test');
|
||||
#insert into t2(c1, c2, c3) values(1, 1, 'test');
|
||||
#insert into t2(c1, c2, c3) values(1, 1, 'test'), (2, 2, 'hello'), (3, 3, 'world');
|
||||
Reference in New Issue
Block a user