Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
2
22fa00199
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Summer2022
22fa00199
Commits
ae70733d
Unverified
Commit
ae70733d
authored
2 years ago
by
ou yuanning
Committed by
GitHub
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
test/cases/prepare/prepare.test
+7
-0
7 additions, 0 deletions
test/cases/prepare/prepare.test
test/result/prepare/prepare.result
+9
-0
9 additions, 0 deletions
test/result/prepare/prepare.result
with
16 additions
and
0 deletions
test/cases/prepare/prepare.test
+
7
−
0
View file @
ae70733d
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
test/result/prepare/prepare.result
+
9
−
0
View file @
ae70733d
...
...
@@ -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;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment