Skip to content

Commit 75bc483

Browse files
midenokkevgs
authored andcommitted
Tests: moved concat_execN() to common.inc
1 parent f79c446 commit 75bc483

15 files changed

+170
-20
lines changed

mysql-test/suite/versioning/common.inc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,20 @@ begin
6666
drop table tmp;
6767
end if;
6868
end~~
69+
70+
create procedure concat_exec2(a varchar(255), b varchar(255))
71+
begin
72+
prepare stmt from concat(a, b);
73+
execute stmt;
74+
deallocate prepare stmt;
75+
end~~
76+
77+
create procedure concat_exec3(a varchar(255), b varchar(255), c varchar(255))
78+
begin
79+
prepare stmt from concat(a, b, c);
80+
execute stmt;
81+
deallocate prepare stmt;
82+
end~~
6983
delimiter ;~~
7084

7185
let $default_engine= `select default_engine()`;

mysql-test/suite/versioning/common_finish.inc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ drop procedure innodb_verify_vtq;
33
drop function default_engine;
44
drop function sys_commit_ts;
55
drop function sys_datatype;
6+
drop procedure concat_exec2;
7+
drop procedure concat_exec3;

mysql-test/suite/versioning/r/alter.result

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,18 @@ select * from tmp;
309309
drop table tmp;
310310
end if;
311311
end~~
312+
create procedure concat_exec2(a varchar(255), b varchar(255))
313+
begin
314+
prepare stmt from concat(a, b);
315+
execute stmt;
316+
deallocate prepare stmt;
317+
end~~
318+
create procedure concat_exec3(a varchar(255), b varchar(255), c varchar(255))
319+
begin
320+
prepare stmt from concat(a, b, c);
321+
execute stmt;
322+
deallocate prepare stmt;
323+
end~~
312324
create or replace table t(
313325
a int
314326
) engine=innodb;
@@ -578,3 +590,5 @@ drop procedure innodb_verify_vtq;
578590
drop function default_engine;
579591
drop function sys_commit_ts;
580592
drop function sys_datatype;
593+
drop procedure concat_exec2;
594+
drop procedure concat_exec3;

mysql-test/suite/versioning/r/auto_increment.result

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,18 @@ select * from tmp;
6060
drop table tmp;
6161
end if;
6262
end~~
63+
create procedure concat_exec2(a varchar(255), b varchar(255))
64+
begin
65+
prepare stmt from concat(a, b);
66+
execute stmt;
67+
deallocate prepare stmt;
68+
end~~
69+
create procedure concat_exec3(a varchar(255), b varchar(255), c varchar(255))
70+
begin
71+
prepare stmt from concat(a, b, c);
72+
execute stmt;
73+
deallocate prepare stmt;
74+
end~~
6375
create procedure test_01(
6476
sys_type varchar(255),
6577
engine varchar(255),
@@ -184,3 +196,5 @@ drop procedure innodb_verify_vtq;
184196
drop function default_engine;
185197
drop function sys_commit_ts;
186198
drop function sys_datatype;
199+
drop procedure concat_exec2;
200+
drop procedure concat_exec3;

mysql-test/suite/versioning/r/commit_id.result

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,18 @@ select * from tmp;
6060
drop table tmp;
6161
end if;
6262
end~~
63+
create procedure concat_exec2(a varchar(255), b varchar(255))
64+
begin
65+
prepare stmt from concat(a, b);
66+
execute stmt;
67+
deallocate prepare stmt;
68+
end~~
69+
create procedure concat_exec3(a varchar(255), b varchar(255), c varchar(255))
70+
begin
71+
prepare stmt from concat(a, b, c);
72+
execute stmt;
73+
deallocate prepare stmt;
74+
end~~
6375
create table t1(
6476
id int auto_increment primary key)
6577
with system versioning
@@ -156,3 +168,5 @@ drop procedure innodb_verify_vtq;
156168
drop function default_engine;
157169
drop function sys_commit_ts;
158170
drop function sys_datatype;
171+
drop procedure concat_exec2;
172+
drop procedure concat_exec3;

mysql-test/suite/versioning/r/create.result

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,18 @@ select * from tmp;
6060
drop table tmp;
6161
end if;
6262
end~~
63+
create procedure concat_exec2(a varchar(255), b varchar(255))
64+
begin
65+
prepare stmt from concat(a, b);
66+
execute stmt;
67+
deallocate prepare stmt;
68+
end~~
69+
create procedure concat_exec3(a varchar(255), b varchar(255), c varchar(255))
70+
begin
71+
prepare stmt from concat(a, b, c);
72+
execute stmt;
73+
deallocate prepare stmt;
74+
end~~
6375
drop table if exists t1;
6476
create function if not exists non_default_engine()
6577
returns varchar(255)

mysql-test/suite/versioning/r/ddl.result

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,6 @@ insert into t values (1);
169169
update t set a=2 where a=1;
170170
alter table t add column b int, algorithm=inplace;
171171
set versioning_alter_history = keep;
172-
drop procedure concat_exec2;
173-
drop procedure concat_exec3;
174172
drop function get_historical_table_name;
175173
drop procedure drop_last_historical;
176174
select * from mysql.vtmd_template;
@@ -208,3 +206,5 @@ drop procedure innodb_verify_vtq;
208206
drop function default_engine;
209207
drop function sys_commit_ts;
210208
drop function sys_datatype;
209+
drop procedure concat_exec2;
210+
drop procedure concat_exec3;

mysql-test/suite/versioning/r/delete.result

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,18 @@ select * from tmp;
6060
drop table tmp;
6161
end if;
6262
end~~
63+
create procedure concat_exec2(a varchar(255), b varchar(255))
64+
begin
65+
prepare stmt from concat(a, b);
66+
execute stmt;
67+
deallocate prepare stmt;
68+
end~~
69+
create procedure concat_exec3(a varchar(255), b varchar(255), c varchar(255))
70+
begin
71+
prepare stmt from concat(a, b, c);
72+
execute stmt;
73+
deallocate prepare stmt;
74+
end~~
6375
create or replace procedure test_01(
6476
sys_type varchar(255),
6577
engine varchar(255),
@@ -357,3 +369,5 @@ drop procedure innodb_verify_vtq;
357369
drop function default_engine;
358370
drop function sys_commit_ts;
359371
drop function sys_datatype;
372+
drop procedure concat_exec2;
373+
drop procedure concat_exec3;

mysql-test/suite/versioning/r/insert.result

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,18 @@ select * from tmp;
6060
drop table tmp;
6161
end if;
6262
end~~
63+
create procedure concat_exec2(a varchar(255), b varchar(255))
64+
begin
65+
prepare stmt from concat(a, b);
66+
execute stmt;
67+
deallocate prepare stmt;
68+
end~~
69+
create procedure concat_exec3(a varchar(255), b varchar(255), c varchar(255))
70+
begin
71+
prepare stmt from concat(a, b, c);
72+
execute stmt;
73+
deallocate prepare stmt;
74+
end~~
6375
create procedure test_01(
6476
sys_type varchar(255),
6577
engine varchar(255),
@@ -354,3 +366,5 @@ drop procedure innodb_verify_vtq;
354366
drop function default_engine;
355367
drop function sys_commit_ts;
356368
drop function sys_datatype;
369+
drop procedure concat_exec2;
370+
drop procedure concat_exec3;

mysql-test/suite/versioning/r/partition.result

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,18 @@ select * from tmp;
6060
drop table tmp;
6161
end if;
6262
end~~
63+
create procedure concat_exec2(a varchar(255), b varchar(255))
64+
begin
65+
prepare stmt from concat(a, b);
66+
execute stmt;
67+
deallocate prepare stmt;
68+
end~~
69+
create procedure concat_exec3(a varchar(255), b varchar(255), c varchar(255))
70+
begin
71+
prepare stmt from concat(a, b, c);
72+
execute stmt;
73+
deallocate prepare stmt;
74+
end~~
6375
create table t1 (x int)
6476
with system versioning
6577
partition by range columns (x) (
@@ -361,3 +373,5 @@ drop procedure innodb_verify_vtq;
361373
drop function default_engine;
362374
drop function sys_commit_ts;
363375
drop function sys_datatype;
376+
drop procedure concat_exec2;
377+
drop procedure concat_exec3;

0 commit comments

Comments
 (0)