Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
75bc483d
Commit
75bc483d
authored
Sep 25, 2017
by
Aleksey Midenkov
Committed by
Eugene Kosov
Sep 25, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tests: moved concat_execN() to common.inc
parent
f79c4469
Changes
15
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
170 additions
and
20 deletions
+170
-20
mysql-test/suite/versioning/common.inc
mysql-test/suite/versioning/common.inc
+14
-0
mysql-test/suite/versioning/common_finish.inc
mysql-test/suite/versioning/common_finish.inc
+2
-0
mysql-test/suite/versioning/r/alter.result
mysql-test/suite/versioning/r/alter.result
+14
-0
mysql-test/suite/versioning/r/auto_increment.result
mysql-test/suite/versioning/r/auto_increment.result
+14
-0
mysql-test/suite/versioning/r/commit_id.result
mysql-test/suite/versioning/r/commit_id.result
+14
-0
mysql-test/suite/versioning/r/create.result
mysql-test/suite/versioning/r/create.result
+12
-0
mysql-test/suite/versioning/r/ddl.result
mysql-test/suite/versioning/r/ddl.result
+2
-2
mysql-test/suite/versioning/r/delete.result
mysql-test/suite/versioning/r/delete.result
+14
-0
mysql-test/suite/versioning/r/insert.result
mysql-test/suite/versioning/r/insert.result
+14
-0
mysql-test/suite/versioning/r/partition.result
mysql-test/suite/versioning/r/partition.result
+14
-0
mysql-test/suite/versioning/r/select.result
mysql-test/suite/versioning/r/select.result
+14
-0
mysql-test/suite/versioning/r/select_sp.result
mysql-test/suite/versioning/r/select_sp.result
+14
-0
mysql-test/suite/versioning/r/update.result
mysql-test/suite/versioning/r/update.result
+14
-0
mysql-test/suite/versioning/r/view.result
mysql-test/suite/versioning/r/view.result
+14
-0
mysql-test/suite/versioning/t/ddl.test
mysql-test/suite/versioning/t/ddl.test
+0
-18
No files found.
mysql-test/suite/versioning/common.inc
View file @
75bc483d
...
...
@@ -66,6 +66,20 @@ begin
drop
table
tmp
;
end
if
;
end
~~
create
procedure
concat_exec2
(
a
varchar
(
255
),
b
varchar
(
255
))
begin
prepare
stmt
from
concat
(
a
,
b
);
execute
stmt
;
deallocate
prepare
stmt
;
end
~~
create
procedure
concat_exec3
(
a
varchar
(
255
),
b
varchar
(
255
),
c
varchar
(
255
))
begin
prepare
stmt
from
concat
(
a
,
b
,
c
);
execute
stmt
;
deallocate
prepare
stmt
;
end
~~
delimiter
;
~~
let
$default_engine
=
`select default_engine()`
;
...
...
mysql-test/suite/versioning/common_finish.inc
View file @
75bc483d
...
...
@@ -3,3 +3,5 @@ drop procedure innodb_verify_vtq;
drop
function
default_engine
;
drop
function
sys_commit_ts
;
drop
function
sys_datatype
;
drop
procedure
concat_exec2
;
drop
procedure
concat_exec3
;
mysql-test/suite/versioning/r/alter.result
View file @
75bc483d
...
...
@@ -309,6 +309,18 @@ select * from tmp;
drop table tmp;
end if;
end~~
create procedure concat_exec2(a varchar(255), b varchar(255))
begin
prepare stmt from concat(a, b);
execute stmt;
deallocate prepare stmt;
end~~
create procedure concat_exec3(a varchar(255), b varchar(255), c varchar(255))
begin
prepare stmt from concat(a, b, c);
execute stmt;
deallocate prepare stmt;
end~~
create or replace table t(
a int
) engine=innodb;
...
...
@@ -578,3 +590,5 @@ drop procedure innodb_verify_vtq;
drop function default_engine;
drop function sys_commit_ts;
drop function sys_datatype;
drop procedure concat_exec2;
drop procedure concat_exec3;
mysql-test/suite/versioning/r/auto_increment.result
View file @
75bc483d
...
...
@@ -60,6 +60,18 @@ select * from tmp;
drop table tmp;
end if;
end~~
create procedure concat_exec2(a varchar(255), b varchar(255))
begin
prepare stmt from concat(a, b);
execute stmt;
deallocate prepare stmt;
end~~
create procedure concat_exec3(a varchar(255), b varchar(255), c varchar(255))
begin
prepare stmt from concat(a, b, c);
execute stmt;
deallocate prepare stmt;
end~~
create procedure test_01(
sys_type varchar(255),
engine varchar(255),
...
...
@@ -184,3 +196,5 @@ drop procedure innodb_verify_vtq;
drop function default_engine;
drop function sys_commit_ts;
drop function sys_datatype;
drop procedure concat_exec2;
drop procedure concat_exec3;
mysql-test/suite/versioning/r/commit_id.result
View file @
75bc483d
...
...
@@ -60,6 +60,18 @@ select * from tmp;
drop table tmp;
end if;
end~~
create procedure concat_exec2(a varchar(255), b varchar(255))
begin
prepare stmt from concat(a, b);
execute stmt;
deallocate prepare stmt;
end~~
create procedure concat_exec3(a varchar(255), b varchar(255), c varchar(255))
begin
prepare stmt from concat(a, b, c);
execute stmt;
deallocate prepare stmt;
end~~
create table t1(
id int auto_increment primary key)
with system versioning
...
...
@@ -156,3 +168,5 @@ drop procedure innodb_verify_vtq;
drop function default_engine;
drop function sys_commit_ts;
drop function sys_datatype;
drop procedure concat_exec2;
drop procedure concat_exec3;
mysql-test/suite/versioning/r/create.result
View file @
75bc483d
...
...
@@ -60,6 +60,18 @@ select * from tmp;
drop table tmp;
end if;
end~~
create procedure concat_exec2(a varchar(255), b varchar(255))
begin
prepare stmt from concat(a, b);
execute stmt;
deallocate prepare stmt;
end~~
create procedure concat_exec3(a varchar(255), b varchar(255), c varchar(255))
begin
prepare stmt from concat(a, b, c);
execute stmt;
deallocate prepare stmt;
end~~
drop table if exists t1;
create function if not exists non_default_engine()
returns varchar(255)
...
...
mysql-test/suite/versioning/r/ddl.result
View file @
75bc483d
...
...
@@ -169,8 +169,6 @@ insert into t values (1);
update t set a=2 where a=1;
alter table t add column b int, algorithm=inplace;
set versioning_alter_history = keep;
drop procedure concat_exec2;
drop procedure concat_exec3;
drop function get_historical_table_name;
drop procedure drop_last_historical;
select * from mysql.vtmd_template;
...
...
@@ -208,3 +206,5 @@ drop procedure innodb_verify_vtq;
drop function default_engine;
drop function sys_commit_ts;
drop function sys_datatype;
drop procedure concat_exec2;
drop procedure concat_exec3;
mysql-test/suite/versioning/r/delete.result
View file @
75bc483d
...
...
@@ -60,6 +60,18 @@ select * from tmp;
drop table tmp;
end if;
end~~
create procedure concat_exec2(a varchar(255), b varchar(255))
begin
prepare stmt from concat(a, b);
execute stmt;
deallocate prepare stmt;
end~~
create procedure concat_exec3(a varchar(255), b varchar(255), c varchar(255))
begin
prepare stmt from concat(a, b, c);
execute stmt;
deallocate prepare stmt;
end~~
create or replace procedure test_01(
sys_type varchar(255),
engine varchar(255),
...
...
@@ -357,3 +369,5 @@ drop procedure innodb_verify_vtq;
drop function default_engine;
drop function sys_commit_ts;
drop function sys_datatype;
drop procedure concat_exec2;
drop procedure concat_exec3;
mysql-test/suite/versioning/r/insert.result
View file @
75bc483d
...
...
@@ -60,6 +60,18 @@ select * from tmp;
drop table tmp;
end if;
end~~
create procedure concat_exec2(a varchar(255), b varchar(255))
begin
prepare stmt from concat(a, b);
execute stmt;
deallocate prepare stmt;
end~~
create procedure concat_exec3(a varchar(255), b varchar(255), c varchar(255))
begin
prepare stmt from concat(a, b, c);
execute stmt;
deallocate prepare stmt;
end~~
create procedure test_01(
sys_type varchar(255),
engine varchar(255),
...
...
@@ -354,3 +366,5 @@ drop procedure innodb_verify_vtq;
drop function default_engine;
drop function sys_commit_ts;
drop function sys_datatype;
drop procedure concat_exec2;
drop procedure concat_exec3;
mysql-test/suite/versioning/r/partition.result
View file @
75bc483d
...
...
@@ -60,6 +60,18 @@ select * from tmp;
drop table tmp;
end if;
end~~
create procedure concat_exec2(a varchar(255), b varchar(255))
begin
prepare stmt from concat(a, b);
execute stmt;
deallocate prepare stmt;
end~~
create procedure concat_exec3(a varchar(255), b varchar(255), c varchar(255))
begin
prepare stmt from concat(a, b, c);
execute stmt;
deallocate prepare stmt;
end~~
create table t1 (x int)
with system versioning
partition by range columns (x) (
...
...
@@ -361,3 +373,5 @@ drop procedure innodb_verify_vtq;
drop function default_engine;
drop function sys_commit_ts;
drop function sys_datatype;
drop procedure concat_exec2;
drop procedure concat_exec3;
mysql-test/suite/versioning/r/select.result
View file @
75bc483d
...
...
@@ -60,6 +60,18 @@ select * from tmp;
drop table tmp;
end if;
end~~
create procedure concat_exec2(a varchar(255), b varchar(255))
begin
prepare stmt from concat(a, b);
execute stmt;
deallocate prepare stmt;
end~~
create procedure concat_exec3(a varchar(255), b varchar(255), c varchar(255))
begin
prepare stmt from concat(a, b, c);
execute stmt;
deallocate prepare stmt;
end~~
create or replace table t1 (
x int unsigned,
y int unsigned
...
...
@@ -381,3 +393,5 @@ drop procedure innodb_verify_vtq;
drop function default_engine;
drop function sys_commit_ts;
drop function sys_datatype;
drop procedure concat_exec2;
drop procedure concat_exec3;
mysql-test/suite/versioning/r/select_sp.result
View file @
75bc483d
...
...
@@ -60,6 +60,18 @@ select * from tmp;
drop table tmp;
end if;
end~~
create procedure concat_exec2(a varchar(255), b varchar(255))
begin
prepare stmt from concat(a, b);
execute stmt;
deallocate prepare stmt;
end~~
create procedure concat_exec3(a varchar(255), b varchar(255), c varchar(255))
begin
prepare stmt from concat(a, b, c);
execute stmt;
deallocate prepare stmt;
end~~
create procedure test_01()
begin
declare engine varchar(255) default default_engine();
...
...
@@ -424,3 +436,5 @@ drop procedure innodb_verify_vtq;
drop function default_engine;
drop function sys_commit_ts;
drop function sys_datatype;
drop procedure concat_exec2;
drop procedure concat_exec3;
mysql-test/suite/versioning/r/update.result
View file @
75bc483d
...
...
@@ -60,6 +60,18 @@ select * from tmp;
drop table tmp;
end if;
end~~
create procedure concat_exec2(a varchar(255), b varchar(255))
begin
prepare stmt from concat(a, b);
execute stmt;
deallocate prepare stmt;
end~~
create procedure concat_exec3(a varchar(255), b varchar(255), c varchar(255))
begin
prepare stmt from concat(a, b, c);
execute stmt;
deallocate prepare stmt;
end~~
create procedure test_01(
sys_type varchar(255),
engine varchar(255),
...
...
@@ -577,3 +589,5 @@ drop procedure innodb_verify_vtq;
drop function default_engine;
drop function sys_commit_ts;
drop function sys_datatype;
drop procedure concat_exec2;
drop procedure concat_exec3;
mysql-test/suite/versioning/r/view.result
View file @
75bc483d
...
...
@@ -60,6 +60,18 @@ select * from tmp;
drop table tmp;
end if;
end~~
create procedure concat_exec2(a varchar(255), b varchar(255))
begin
prepare stmt from concat(a, b);
execute stmt;
deallocate prepare stmt;
end~~
create procedure concat_exec3(a varchar(255), b varchar(255), c varchar(255))
begin
prepare stmt from concat(a, b, c);
execute stmt;
deallocate prepare stmt;
end~~
create table t1 (x int) with system versioning engine innodb;
insert into t1 values (1);
select now(6) into @t1;
...
...
@@ -200,3 +212,5 @@ drop procedure innodb_verify_vtq;
drop function default_engine;
drop function sys_commit_ts;
drop function sys_datatype;
drop procedure concat_exec2;
drop procedure concat_exec3;
mysql-test/suite/versioning/t/ddl.test
View file @
75bc483d
--
source
suite
/
versioning
/
common
.
inc
delimiter
~~
;
create
procedure
concat_exec2
(
a
varchar
(
255
),
b
varchar
(
255
))
begin
prepare
stmt
from
concat
(
a
,
b
);
execute
stmt
;
deallocate
prepare
stmt
;
end
~~
create
procedure
concat_exec3
(
a
varchar
(
255
),
b
varchar
(
255
),
c
varchar
(
255
))
begin
prepare
stmt
from
concat
(
a
,
b
,
c
);
execute
stmt
;
deallocate
prepare
stmt
;
end
~~
create
function
get_historical_table_name
(
table_name_arg
varchar
(
255
))
returns
varchar
(
255
)
begin
...
...
@@ -27,7 +12,6 @@ create procedure drop_last_historical(table_name_arg varchar(255))
begin
call
concat_exec2
(
'drop table '
,
get_historical_table_name
(
table_name_arg
));
end
~~
delimiter
;
~~
set
versioning_alter_history
=
survive
;
...
...
@@ -108,8 +92,6 @@ alter table t add column b int, algorithm=inplace;
set
versioning_alter_history
=
keep
;
drop
procedure
concat_exec2
;
drop
procedure
concat_exec3
;
drop
function
get_historical_table_name
;
drop
procedure
drop_last_historical
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment