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
e05650e6
Commit
e05650e6
authored
Sep 21, 2020
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-23776: Add the reduced encryption.create_or_replace test
This was forgotten in commit
a9d8f5c1
.
parent
407d170c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
101 additions
and
0 deletions
+101
-0
mysql-test/suite/encryption/r/create_or_replace.result
mysql-test/suite/encryption/r/create_or_replace.result
+21
-0
mysql-test/suite/encryption/t/create_or_replace.test
mysql-test/suite/encryption/t/create_or_replace.test
+80
-0
No files found.
mysql-test/suite/encryption/r/create_or_replace.result
0 → 100644
View file @
e05650e6
SET @save_threads = @@GLOBAL.innodb_encryption_threads;
SET @save_tables = @@GLOBAL.innodb_encrypt_tables;
SET default_storage_engine = InnoDB;
SET GLOBAL innodb_encryption_threads = 4;
CREATE TABLE `table10_int_autoinc` (`col_int_key` int, pk int auto_increment, `col_int` int, key (`col_int_key` ),primary key (pk)) engine=innodb;
INSERT /*! IGNORE */ INTO table10_int_autoinc VALUES (NULL, NULL, -474021888) , (1, NULL, NULL) , (1141047296, NULL, NULL) , (NULL, NULL, NULL) , (NULL, NULL, 1) , (NULL, NULL, 9) , (0, NULL, 1225785344) , (NULL, NULL, 1574174720) , (2, NULL, NULL) , (6, NULL, 3);
CREATE TABLE `table1_int_autoinc` (`col_int_key` int, pk int auto_increment, `col_int` int,key (`col_int_key` ), primary key (pk)) engine=innodb;
CREATE TABLE `table0_int_autoinc` (`col_int_key` int, pk int auto_increment, `col_int` int, key (`col_int_key` ),primary key (pk)) engine=innodb;
INSERT /*! IGNORE */ INTO table1_int_autoinc VALUES (4, NULL, NULL);
INSERT IGNORE INTO `table0_int_autoinc` ( `col_int_key` ) VALUES ( 1 ), ( 3 ), ( 4 ), ( 1 );
INSERT IGNORE INTO `table1_int_autoinc` ( `col_int` ) VALUES ( 1 ), ( 0 ), ( 7 ), ( 9 );
INSERT IGNORE INTO `table10_int_autoinc` ( `col_int` ) VALUES ( 6 ), ( 2 ), ( 3 ), ( 6 );
connect con1,localhost,root,,test;
connect con2,localhost,root,,test;
disconnect con1;
disconnect con2;
connection default;
drop table create_or_replace_t, table1_int_autoinc, table0_int_autoinc,
table10_int_autoinc;
SET GLOBAL innodb_encryption_threads = @save_threads;
SET GLOBAL innodb_encrypt_tables = @save_tables;
mysql-test/suite/encryption/t/create_or_replace.test
0 → 100644
View file @
e05650e6
--
source
include
/
have_innodb
.
inc
--
source
include
/
have_file_key_management_plugin
.
inc
--
source
include
/
count_sessions
.
inc
SET
@
save_threads
=
@@
GLOBAL
.
innodb_encryption_threads
;
SET
@
save_tables
=
@@
GLOBAL
.
innodb_encrypt_tables
;
SET
default_storage_engine
=
InnoDB
;
#
# MDEV-8173: InnoDB; Failing assertion: crypt_data->type == 1
#
SET
GLOBAL
innodb_encryption_threads
=
4
;
CREATE
TABLE
`table10_int_autoinc`
(
`col_int_key`
int
,
pk
int
auto_increment
,
`col_int`
int
,
key
(
`col_int_key`
),
primary
key
(
pk
))
engine
=
innodb
;
INSERT
/*! IGNORE */
INTO
table10_int_autoinc
VALUES
(
NULL
,
NULL
,
-
474021888
)
,
(
1
,
NULL
,
NULL
)
,
(
1141047296
,
NULL
,
NULL
)
,
(
NULL
,
NULL
,
NULL
)
,
(
NULL
,
NULL
,
1
)
,
(
NULL
,
NULL
,
9
)
,
(
0
,
NULL
,
1225785344
)
,
(
NULL
,
NULL
,
1574174720
)
,
(
2
,
NULL
,
NULL
)
,
(
6
,
NULL
,
3
);
CREATE
TABLE
`table1_int_autoinc`
(
`col_int_key`
int
,
pk
int
auto_increment
,
`col_int`
int
,
key
(
`col_int_key`
),
primary
key
(
pk
))
engine
=
innodb
;
CREATE
TABLE
`table0_int_autoinc`
(
`col_int_key`
int
,
pk
int
auto_increment
,
`col_int`
int
,
key
(
`col_int_key`
),
primary
key
(
pk
))
engine
=
innodb
;
INSERT
/*! IGNORE */
INTO
table1_int_autoinc
VALUES
(
4
,
NULL
,
NULL
);
INSERT
IGNORE
INTO
`table0_int_autoinc`
(
`col_int_key`
)
VALUES
(
1
),
(
3
),
(
4
),
(
1
);
INSERT
IGNORE
INTO
`table1_int_autoinc`
(
`col_int`
)
VALUES
(
1
),
(
0
),
(
7
),
(
9
);
INSERT
IGNORE
INTO
`table10_int_autoinc`
(
`col_int`
)
VALUES
(
6
),
(
2
),
(
3
),
(
6
);
--
connect
(
con1
,
localhost
,
root
,,
test
)
--
connect
(
con2
,
localhost
,
root
,,
test
)
--
disable_query_log
let
$i
=
100
;
while
(
$i
)
{
connection
con1
;
send
SET
GLOBAL
innodb_encrypt_tables
=
ON
;
connection
default
;
CREATE
OR
REPLACE
TABLE
`create_or_replace_t`
AS
SELECT
*
FROM
`table1_int_autoinc`
;
connection
con2
;
send
CREATE
OR
REPLACE
TABLE
`create_or_replace_t`
AS
SELECT
*
FROM
`table10_int_autoinc`
;
connection
default
;
send
CREATE
OR
REPLACE
TABLE
`create_or_replace_t`
AS
SELECT
*
FROM
`table0_int_autoinc`
;
connection
con1
;
--
reap
;
send
SET
GLOBAL
innodb_encrypt_tables
=
OFF
;
connection
con2
;
--
reap
;
connection
default
;
--
reap
;
send
CREATE
OR
REPLACE
TABLE
`create_or_replace_t`
AS
SELECT
*
FROM
`table1_int_autoinc`
;
connection
con2
;
send
CREATE
OR
REPLACE
TABLE
`create_or_replace_t`
AS
SELECT
*
FROM
`table10_int_autoinc`
;
connection
con1
;
--
reap
;
send
SET
GLOBAL
innodb_encrypt_tables
=
ON
;
connection
default
;
--
reap
;
send
CREATE
OR
REPLACE
TABLE
`create_or_replace_t`
AS
SELECT
*
FROM
`table1_int_autoinc`
;
connection
con2
;
--
reap
;
CREATE
OR
REPLACE
TABLE
`create_or_replace_t`
AS
SELECT
*
FROM
`table10_int_autoinc`
;
CREATE
OR
REPLACE
TABLE
`create_or_replace_t`
AS
SELECT
*
FROM
`table0_int_autoinc`
;
connection
con1
;
--
reap
;
connection
default
;
--
reap
;
dec
$i
;
}
--
enable_query_log
disconnect
con1
;
disconnect
con2
;
connection
default
;
drop
table
create_or_replace_t
,
table1_int_autoinc
,
table0_int_autoinc
,
table10_int_autoinc
;
SET
GLOBAL
innodb_encryption_threads
=
@
save_threads
;
SET
GLOBAL
innodb_encrypt_tables
=
@
save_tables
;
--
source
include
/
wait_until_count_sessions
.
inc
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