Skip to content
Snippets Groups Projects
Unverified Commit ae70733d authored by ou yuanning's avatar ou yuanning Committed by GitHub
Browse files

Add prepare BVT test (#4611)

add more BVT test for prepare clause

Approved by: @aressu1985
parent 09698c45
No related branches found
No related tags found
No related merge requests found
......@@ -36,6 +36,13 @@ deallocate prepare stmt1;
drop table t1;
create table t1(a timestamp);
prepare stmt1 from "insert into t1 values (current_timestamp())";
execute stmt1;
execute stmt1;
select count(*) from (select distinct a from t1) t;
drop table t1;
prepare stmt2 from 'select @var_t1';
set @var_t1 = 0;
execute stmt2;
......
......@@ -57,6 +57,15 @@ deallocate prepare stmt1;
drop table t1;
create table t1(a timestamp);
prepare stmt1 from "insert into t1 values (current_timestamp())";
execute stmt1;
execute stmt1;
select count(*) from (select distinct a from t1) t;
count(*)
2
drop table t1;
prepare stmt2 from 'select @var_t1';
set @var_t1 = 0;
execute stmt2;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment