init push

This commit is contained in:
oceanbase-admin
2021-05-31 22:56:52 +08:00
commit cea7de1475
7020 changed files with 5689869 additions and 0 deletions

View File

@ -0,0 +1,17 @@
connect conn_admin, $OBMYSQL_MS0,admin,$OBMYSQL_PWD,test,$OBMYSQL_PORT;
connection conn_admin;
alter system flush plan cache global;
connection default;
// test multi query hit plan
drop table if exists t1;
create table t1(c1 int);
begin;
connection default;
select * from t1 where c1 = 1;select * from t1 where c1 = 1;select * from t1 where c1 = 1;//
commit;
// expected hit_count 2
select hit_count from oceanbase.gv$plan_cache_plan_stat where statement like "select * from t1 where c1 = ?;";
hit_count
2
drop table t1;