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
...
@@ -66,6 +66,20 @@ begin
drop
table
tmp
;
drop
table
tmp
;
end
if
;
end
if
;
end
~~
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
;
~~
delimiter
;
~~
let
$default_engine
=
`select default_engine()`
;
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;
...
@@ -3,3 +3,5 @@ drop procedure innodb_verify_vtq;
drop
function
default_engine
;
drop
function
default_engine
;
drop
function
sys_commit_ts
;
drop
function
sys_commit_ts
;
drop
function
sys_datatype
;
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;
...
@@ -309,6 +309,18 @@ select * from tmp;
drop table tmp;
drop table tmp;
end if;
end if;
end~~
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(
create or replace table t(
a int
a int
) engine=innodb;
) engine=innodb;
...
@@ -578,3 +590,5 @@ drop procedure innodb_verify_vtq;
...
@@ -578,3 +590,5 @@ drop procedure innodb_verify_vtq;
drop function default_engine;
drop function default_engine;
drop function sys_commit_ts;
drop function sys_commit_ts;
drop function sys_datatype;
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;
...
@@ -60,6 +60,18 @@ select * from tmp;
drop table tmp;
drop table tmp;
end if;
end if;
end~~
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(
create procedure test_01(
sys_type varchar(255),
sys_type varchar(255),
engine varchar(255),
engine varchar(255),
...
@@ -184,3 +196,5 @@ drop procedure innodb_verify_vtq;
...
@@ -184,3 +196,5 @@ drop procedure innodb_verify_vtq;
drop function default_engine;
drop function default_engine;
drop function sys_commit_ts;
drop function sys_commit_ts;
drop function sys_datatype;
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;
...
@@ -60,6 +60,18 @@ select * from tmp;
drop table tmp;
drop table tmp;
end if;
end if;
end~~
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(
create table t1(
id int auto_increment primary key)
id int auto_increment primary key)
with system versioning
with system versioning
...
@@ -156,3 +168,5 @@ drop procedure innodb_verify_vtq;
...
@@ -156,3 +168,5 @@ drop procedure innodb_verify_vtq;
drop function default_engine;
drop function default_engine;
drop function sys_commit_ts;
drop function sys_commit_ts;
drop function sys_datatype;
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;
...
@@ -60,6 +60,18 @@ select * from tmp;
drop table tmp;
drop table tmp;
end if;
end if;
end~~
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;
drop table if exists t1;
create function if not exists non_default_engine()
create function if not exists non_default_engine()
returns varchar(255)
returns varchar(255)
...
...
mysql-test/suite/versioning/r/ddl.result
View file @
75bc483d
...
@@ -169,8 +169,6 @@ insert into t values (1);
...
@@ -169,8 +169,6 @@ insert into t values (1);
update t set a=2 where a=1;
update t set a=2 where a=1;
alter table t add column b int, algorithm=inplace;
alter table t add column b int, algorithm=inplace;
set versioning_alter_history = keep;
set versioning_alter_history = keep;
drop procedure concat_exec2;
drop procedure concat_exec3;
drop function get_historical_table_name;
drop function get_historical_table_name;
drop procedure drop_last_historical;
drop procedure drop_last_historical;
select * from mysql.vtmd_template;
select * from mysql.vtmd_template;
...
@@ -208,3 +206,5 @@ drop procedure innodb_verify_vtq;
...
@@ -208,3 +206,5 @@ drop procedure innodb_verify_vtq;
drop function default_engine;
drop function default_engine;
drop function sys_commit_ts;
drop function sys_commit_ts;
drop function sys_datatype;
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;
...
@@ -60,6 +60,18 @@ select * from tmp;
drop table tmp;
drop table tmp;
end if;
end if;
end~~
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(
create or replace procedure test_01(
sys_type varchar(255),
sys_type varchar(255),
engine varchar(255),
engine varchar(255),
...
@@ -357,3 +369,5 @@ drop procedure innodb_verify_vtq;
...
@@ -357,3 +369,5 @@ drop procedure innodb_verify_vtq;
drop function default_engine;
drop function default_engine;
drop function sys_commit_ts;
drop function sys_commit_ts;
drop function sys_datatype;
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;
...
@@ -60,6 +60,18 @@ select * from tmp;
drop table tmp;
drop table tmp;
end if;
end if;
end~~
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(
create procedure test_01(
sys_type varchar(255),
sys_type varchar(255),
engine varchar(255),
engine varchar(255),
...
@@ -354,3 +366,5 @@ drop procedure innodb_verify_vtq;
...
@@ -354,3 +366,5 @@ drop procedure innodb_verify_vtq;
drop function default_engine;
drop function default_engine;
drop function sys_commit_ts;
drop function sys_commit_ts;
drop function sys_datatype;
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;
...
@@ -60,6 +60,18 @@ select * from tmp;
drop table tmp;
drop table tmp;
end if;
end if;
end~~
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)
create table t1 (x int)
with system versioning
with system versioning
partition by range columns (x) (
partition by range columns (x) (
...
@@ -361,3 +373,5 @@ drop procedure innodb_verify_vtq;
...
@@ -361,3 +373,5 @@ drop procedure innodb_verify_vtq;
drop function default_engine;
drop function default_engine;
drop function sys_commit_ts;
drop function sys_commit_ts;
drop function sys_datatype;
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;
...
@@ -60,6 +60,18 @@ select * from tmp;
drop table tmp;
drop table tmp;
end if;
end if;
end~~
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 (
create or replace table t1 (
x int unsigned,
x int unsigned,
y int unsigned
y int unsigned
...
@@ -381,3 +393,5 @@ drop procedure innodb_verify_vtq;
...
@@ -381,3 +393,5 @@ drop procedure innodb_verify_vtq;
drop function default_engine;
drop function default_engine;
drop function sys_commit_ts;
drop function sys_commit_ts;
drop function sys_datatype;
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;
...
@@ -60,6 +60,18 @@ select * from tmp;
drop table tmp;
drop table tmp;
end if;
end if;
end~~
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()
create procedure test_01()
begin
begin
declare engine varchar(255) default default_engine();
declare engine varchar(255) default default_engine();
...
@@ -424,3 +436,5 @@ drop procedure innodb_verify_vtq;
...
@@ -424,3 +436,5 @@ drop procedure innodb_verify_vtq;
drop function default_engine;
drop function default_engine;
drop function sys_commit_ts;
drop function sys_commit_ts;
drop function sys_datatype;
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;
...
@@ -60,6 +60,18 @@ select * from tmp;
drop table tmp;
drop table tmp;
end if;
end if;
end~~
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(
create procedure test_01(
sys_type varchar(255),
sys_type varchar(255),
engine varchar(255),
engine varchar(255),
...
@@ -577,3 +589,5 @@ drop procedure innodb_verify_vtq;
...
@@ -577,3 +589,5 @@ drop procedure innodb_verify_vtq;
drop function default_engine;
drop function default_engine;
drop function sys_commit_ts;
drop function sys_commit_ts;
drop function sys_datatype;
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;
...
@@ -60,6 +60,18 @@ select * from tmp;
drop table tmp;
drop table tmp;
end if;
end if;
end~~
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;
create table t1 (x int) with system versioning engine innodb;
insert into t1 values (1);
insert into t1 values (1);
select now(6) into @t1;
select now(6) into @t1;
...
@@ -200,3 +212,5 @@ drop procedure innodb_verify_vtq;
...
@@ -200,3 +212,5 @@ drop procedure innodb_verify_vtq;
drop function default_engine;
drop function default_engine;
drop function sys_commit_ts;
drop function sys_commit_ts;
drop function sys_datatype;
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
--
source
suite
/
versioning
/
common
.
inc
delimiter
~~
;
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
))
create
function
get_historical_table_name
(
table_name_arg
varchar
(
255
))
returns
varchar
(
255
)
returns
varchar
(
255
)
begin
begin
...
@@ -27,7 +12,6 @@ create procedure drop_last_historical(table_name_arg varchar(255))
...
@@ -27,7 +12,6 @@ create procedure drop_last_historical(table_name_arg varchar(255))
begin
begin
call
concat_exec2
(
'drop table '
,
get_historical_table_name
(
table_name_arg
));
call
concat_exec2
(
'drop table '
,
get_historical_table_name
(
table_name_arg
));
end
~~
end
~~
delimiter
;
~~
delimiter
;
~~
set
versioning_alter_history
=
survive
;
set
versioning_alter_history
=
survive
;
...
@@ -108,8 +92,6 @@ alter table t add column b int, algorithm=inplace;
...
@@ -108,8 +92,6 @@ alter table t add column b int, algorithm=inplace;
set
versioning_alter_history
=
keep
;
set
versioning_alter_history
=
keep
;
drop
procedure
concat_exec2
;
drop
procedure
concat_exec3
;
drop
function
get_historical_table_name
;
drop
function
get_historical_table_name
;
drop
procedure
drop_last_historical
;
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