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
51256b60
Commit
51256b60
authored
Jul 08, 2017
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes for lower_case_table_names=2
parent
c9801135
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
344 additions
and
344 deletions
+344
-344
mysql-test/suite/binlog/r/flashback.result
mysql-test/suite/binlog/r/flashback.result
+19
-19
mysql-test/suite/binlog/t/flashback.test
mysql-test/suite/binlog/t/flashback.test
+19
-19
mysql-test/suite/parts/r/partition_mgm_lc2_innodb.result
mysql-test/suite/parts/r/partition_mgm_lc2_innodb.result
+102
-102
mysql-test/suite/parts/r/partition_mgm_lc2_memory.result
mysql-test/suite/parts/r/partition_mgm_lc2_memory.result
+102
-102
mysql-test/suite/parts/r/partition_mgm_lc2_myisam.result
mysql-test/suite/parts/r/partition_mgm_lc2_myisam.result
+102
-102
No files found.
mysql-test/suite/binlog/r/flashback.result
View file @
51256b60
...
@@ -613,7 +613,7 @@ DROP TABLE t1;
...
@@ -613,7 +613,7 @@ DROP TABLE t1;
# Test Case from MDEV-21067
# Test Case from MDEV-21067
#
#
CREATE DATABASE world;
CREATE DATABASE world;
CREATE TABLE world.
C
ity (
CREATE TABLE world.
c
ity (
ID INT AUTO_INCREMENT PRIMARY KEY,
ID INT AUTO_INCREMENT PRIMARY KEY,
Name VARCHAR(64),
Name VARCHAR(64),
CountryCode VARCHAR(64),
CountryCode VARCHAR(64),
...
@@ -625,35 +625,35 @@ ID INT AUTO_INCREMENT PRIMARY KEY,
...
@@ -625,35 +625,35 @@ ID INT AUTO_INCREMENT PRIMARY KEY,
REC VARCHAR(64),
REC VARCHAR(64),
ts TIMESTAMP
ts TIMESTAMP
) ENGINE=InnoDB;
) ENGINE=InnoDB;
INSERT INTO world.
C
ity VALUES (NULL, 'Davenport', 'USA', 'Iowa', 100);
INSERT INTO world.
c
ity VALUES (NULL, 'Davenport', 'USA', 'Iowa', 100);
INSERT INTO world.
C
ity VALUES (NULL, 'Boulder', 'USA', 'Colorado', 1000);
INSERT INTO world.
c
ity VALUES (NULL, 'Boulder', 'USA', 'Colorado', 1000);
INSERT INTO world.
C
ity VALUES (NULL, 'Gweru', 'ZWE', 'Midlands', 10000);
INSERT INTO world.
c
ity VALUES (NULL, 'Gweru', 'ZWE', 'Midlands', 10000);
RESET MASTER;
RESET MASTER;
CHECKSUM TABLE world.
C
ity;
CHECKSUM TABLE world.
c
ity;
Table Checksum
Table Checksum
world.
C
ity 563256876
world.
c
ity 563256876
INSERT INTO test.test VALUES (NULL, 'Good record 1', CURRENT_TIMESTAMP());
INSERT INTO test.test VALUES (NULL, 'Good record 1', CURRENT_TIMESTAMP());
INSERT INTO world.
C
ity VALUES (NULL, 'Wrong value 1', '000', 'Wrong', 0);
INSERT INTO world.
c
ity VALUES (NULL, 'Wrong value 1', '000', 'Wrong', 0);
INSERT INTO world.
C
ity VALUES (NULL, 'Wrong value 2', '000', 'Wrong', 0) , (NULL, 'Wrong value 3', '000', 'Wrong', 0);
INSERT INTO world.
c
ity VALUES (NULL, 'Wrong value 2', '000', 'Wrong', 0) , (NULL, 'Wrong value 3', '000', 'Wrong', 0);
INSERT INTO test.test VALUES (NULL, 'Good record 2', CURRENT_TIMESTAMP());
INSERT INTO test.test VALUES (NULL, 'Good record 2', CURRENT_TIMESTAMP());
UPDATE world.
C
ity SET Population = 99999999 WHERE ID IN (1, 2, 3);
UPDATE world.
c
ity SET Population = 99999999 WHERE ID IN (1, 2, 3);
INSERT INTO test.test VALUES (NULL, 'Good record 3', CURRENT_TIMESTAMP());
INSERT INTO test.test VALUES (NULL, 'Good record 3', CURRENT_TIMESTAMP());
DELETE FROM world.
C
ity WHERE ID BETWEEN 1 AND 2;
DELETE FROM world.
c
ity WHERE ID BETWEEN 1 AND 2;
INSERT INTO test.test VALUES (NULL, 'Good record 5', CURRENT_TIMESTAMP());
INSERT INTO test.test VALUES (NULL, 'Good record 5', CURRENT_TIMESTAMP());
REPLACE INTO world.
C
ity VALUES (4074, 'Wrong value 4', '000', 'Wrong', 0);
REPLACE INTO world.
c
ity VALUES (4074, 'Wrong value 4', '000', 'Wrong', 0);
REPLACE INTO world.
C
ity VALUES (4078, 'Wrong value 5', '000', 'Wrong', 0), (NULL, 'Wrong value 6', '000', 'Wrong', 0);
REPLACE INTO world.
c
ity VALUES (4078, 'Wrong value 5', '000', 'Wrong', 0), (NULL, 'Wrong value 6', '000', 'Wrong', 0);
INSERT INTO test.test VALUES (NULL, 'Good record 6', CURRENT_TIMESTAMP());
INSERT INTO test.test VALUES (NULL, 'Good record 6', CURRENT_TIMESTAMP());
INSERT INTO world.
C
ity
INSERT INTO world.
c
ity
SELECT NULL, Name, CountryCode, District, Population FROM world.
C
ity WHERE ID BETWEEN 2 AND 10;
SELECT NULL, Name, CountryCode, District, Population FROM world.
c
ity WHERE ID BETWEEN 2 AND 10;
INSERT INTO test.test VALUES (NULL, 'Good record 7', CURRENT_TIMESTAMP());
INSERT INTO test.test VALUES (NULL, 'Good record 7', CURRENT_TIMESTAMP());
INSERT INTO test.test VALUES (NULL, 'Good record 8', CURRENT_TIMESTAMP());
INSERT INTO test.test VALUES (NULL, 'Good record 8', CURRENT_TIMESTAMP());
DELETE FROM world.
C
ity;
DELETE FROM world.
c
ity;
INSERT INTO test.test VALUES (NULL, 'Good record 9', CURRENT_TIMESTAMP());
INSERT INTO test.test VALUES (NULL, 'Good record 9', CURRENT_TIMESTAMP());
FLUSH LOGS;
FLUSH LOGS;
# < CASE 6 >
# < CASE 6 >
# Flashback & Check the result
# Flashback & Check the result
#
#
SELECT * FROM world.
C
ity;
SELECT * FROM world.
c
ity;
ID Name CountryCode District Population
ID Name CountryCode District Population
1 Davenport USA Iowa 100
1 Davenport USA Iowa 100
2 Boulder USA Colorado 1000
2 Boulder USA Colorado 1000
...
@@ -668,11 +668,11 @@ ID REC ts
...
@@ -668,11 +668,11 @@ ID REC ts
6 Good record 7 2001-09-09 09:46:40
6 Good record 7 2001-09-09 09:46:40
7 Good record 8 2001-09-09 09:46:40
7 Good record 8 2001-09-09 09:46:40
8 Good record 9 2001-09-09 09:46:40
8 Good record 9 2001-09-09 09:46:40
CHECKSUM TABLE world.
C
ity;
CHECKSUM TABLE world.
c
ity;
Table Checksum
Table Checksum
world.
C
ity 563256876
world.
c
ity 563256876
DROP TABLE test.test;
DROP TABLE test.test;
DROP TABLE world.
C
ity;
DROP TABLE world.
c
ity;
DROP DATABASE world;
DROP DATABASE world;
SET binlog_format=statement;
SET binlog_format=statement;
Warnings:
Warnings:
...
...
mysql-test/suite/binlog/t/flashback.test
View file @
51256b60
...
@@ -260,7 +260,7 @@ DROP TABLE t1;
...
@@ -260,7 +260,7 @@ DROP TABLE t1;
# Init Structure
# Init Structure
CREATE
DATABASE
world
;
CREATE
DATABASE
world
;
CREATE
TABLE
world
.
C
ity
(
CREATE
TABLE
world
.
c
ity
(
ID
INT
AUTO_INCREMENT
PRIMARY
KEY
,
ID
INT
AUTO_INCREMENT
PRIMARY
KEY
,
Name
VARCHAR
(
64
),
Name
VARCHAR
(
64
),
CountryCode
VARCHAR
(
64
),
CountryCode
VARCHAR
(
64
),
...
@@ -273,43 +273,43 @@ CREATE TABLE test.test (
...
@@ -273,43 +273,43 @@ CREATE TABLE test.test (
ts
TIMESTAMP
ts
TIMESTAMP
)
ENGINE
=
InnoDB
;
)
ENGINE
=
InnoDB
;
INSERT
INTO
world
.
C
ity
VALUES
(
NULL
,
'Davenport'
,
'USA'
,
'Iowa'
,
100
);
INSERT
INTO
world
.
c
ity
VALUES
(
NULL
,
'Davenport'
,
'USA'
,
'Iowa'
,
100
);
INSERT
INTO
world
.
C
ity
VALUES
(
NULL
,
'Boulder'
,
'USA'
,
'Colorado'
,
1000
);
INSERT
INTO
world
.
c
ity
VALUES
(
NULL
,
'Boulder'
,
'USA'
,
'Colorado'
,
1000
);
INSERT
INTO
world
.
C
ity
VALUES
(
NULL
,
'Gweru'
,
'ZWE'
,
'Midlands'
,
10000
);
INSERT
INTO
world
.
c
ity
VALUES
(
NULL
,
'Gweru'
,
'ZWE'
,
'Midlands'
,
10000
);
RESET
MASTER
;
RESET
MASTER
;
CHECKSUM
TABLE
world
.
C
ity
;
CHECKSUM
TABLE
world
.
c
ity
;
# Insert test data
# Insert test data
INSERT
INTO
test
.
test
VALUES
(
NULL
,
'Good record 1'
,
CURRENT_TIMESTAMP
());
INSERT
INTO
test
.
test
VALUES
(
NULL
,
'Good record 1'
,
CURRENT_TIMESTAMP
());
INSERT
INTO
world
.
C
ity
VALUES
(
NULL
,
'Wrong value 1'
,
'000'
,
'Wrong'
,
0
);
INSERT
INTO
world
.
c
ity
VALUES
(
NULL
,
'Wrong value 1'
,
'000'
,
'Wrong'
,
0
);
INSERT
INTO
world
.
C
ity
VALUES
(
NULL
,
'Wrong value 2'
,
'000'
,
'Wrong'
,
0
)
,
(
NULL
,
'Wrong value 3'
,
'000'
,
'Wrong'
,
0
);
INSERT
INTO
world
.
c
ity
VALUES
(
NULL
,
'Wrong value 2'
,
'000'
,
'Wrong'
,
0
)
,
(
NULL
,
'Wrong value 3'
,
'000'
,
'Wrong'
,
0
);
INSERT
INTO
test
.
test
VALUES
(
NULL
,
'Good record 2'
,
CURRENT_TIMESTAMP
());
INSERT
INTO
test
.
test
VALUES
(
NULL
,
'Good record 2'
,
CURRENT_TIMESTAMP
());
UPDATE
world
.
C
ity
SET
Population
=
99999999
WHERE
ID
IN
(
1
,
2
,
3
);
UPDATE
world
.
c
ity
SET
Population
=
99999999
WHERE
ID
IN
(
1
,
2
,
3
);
INSERT
INTO
test
.
test
VALUES
(
NULL
,
'Good record 3'
,
CURRENT_TIMESTAMP
());
INSERT
INTO
test
.
test
VALUES
(
NULL
,
'Good record 3'
,
CURRENT_TIMESTAMP
());
DELETE
FROM
world
.
C
ity
WHERE
ID
BETWEEN
1
AND
2
;
DELETE
FROM
world
.
c
ity
WHERE
ID
BETWEEN
1
AND
2
;
INSERT
INTO
test
.
test
VALUES
(
NULL
,
'Good record 5'
,
CURRENT_TIMESTAMP
());
INSERT
INTO
test
.
test
VALUES
(
NULL
,
'Good record 5'
,
CURRENT_TIMESTAMP
());
REPLACE
INTO
world
.
C
ity
VALUES
(
4074
,
'Wrong value 4'
,
'000'
,
'Wrong'
,
0
);
REPLACE
INTO
world
.
c
ity
VALUES
(
4074
,
'Wrong value 4'
,
'000'
,
'Wrong'
,
0
);
REPLACE
INTO
world
.
C
ity
VALUES
(
4078
,
'Wrong value 5'
,
'000'
,
'Wrong'
,
0
),
(
NULL
,
'Wrong value 6'
,
'000'
,
'Wrong'
,
0
);
REPLACE
INTO
world
.
c
ity
VALUES
(
4078
,
'Wrong value 5'
,
'000'
,
'Wrong'
,
0
),
(
NULL
,
'Wrong value 6'
,
'000'
,
'Wrong'
,
0
);
INSERT
INTO
test
.
test
VALUES
(
NULL
,
'Good record 6'
,
CURRENT_TIMESTAMP
());
INSERT
INTO
test
.
test
VALUES
(
NULL
,
'Good record 6'
,
CURRENT_TIMESTAMP
());
INSERT
INTO
world
.
C
ity
INSERT
INTO
world
.
c
ity
SELECT
NULL
,
Name
,
CountryCode
,
District
,
Population
FROM
world
.
C
ity
WHERE
ID
BETWEEN
2
AND
10
;
SELECT
NULL
,
Name
,
CountryCode
,
District
,
Population
FROM
world
.
c
ity
WHERE
ID
BETWEEN
2
AND
10
;
INSERT
INTO
test
.
test
VALUES
(
NULL
,
'Good record 7'
,
CURRENT_TIMESTAMP
());
INSERT
INTO
test
.
test
VALUES
(
NULL
,
'Good record 7'
,
CURRENT_TIMESTAMP
());
INSERT
INTO
test
.
test
VALUES
(
NULL
,
'Good record 8'
,
CURRENT_TIMESTAMP
());
INSERT
INTO
test
.
test
VALUES
(
NULL
,
'Good record 8'
,
CURRENT_TIMESTAMP
());
DELETE
FROM
world
.
C
ity
;
DELETE
FROM
world
.
c
ity
;
INSERT
INTO
test
.
test
VALUES
(
NULL
,
'Good record 9'
,
CURRENT_TIMESTAMP
());
INSERT
INTO
test
.
test
VALUES
(
NULL
,
'Good record 9'
,
CURRENT_TIMESTAMP
());
...
@@ -321,18 +321,18 @@ FLUSH LOGS;
...
@@ -321,18 +321,18 @@ FLUSH LOGS;
let
$MYSQLD_DATADIR
=
`select @@datadir`
;
let
$MYSQLD_DATADIR
=
`select @@datadir`
;
--
replace_result
$MYSQLTEST_VARDIR
MYSQLTEST_VARDIR
--
replace_result
$MYSQLTEST_VARDIR
MYSQLTEST_VARDIR
--
exec
$MYSQL_BINLOG
--
database
=
world
--
table
=
C
ity
-
vv
$MYSQLD_DATADIR
/
master
-
bin
.
000001
>
$MYSQLTEST_VARDIR
/
tmp
/
mysqlbinlog_row_flashback_original_6
.
sql
--
exec
$MYSQL_BINLOG
--
database
=
world
--
table
=
c
ity
-
vv
$MYSQLD_DATADIR
/
master
-
bin
.
000001
>
$MYSQLTEST_VARDIR
/
tmp
/
mysqlbinlog_row_flashback_original_6
.
sql
--
exec
$MYSQL_BINLOG
--
database
=
world
--
table
=
C
ity
-
B
$MYSQLD_DATADIR
/
master
-
bin
.
000001
>
$MYSQLTEST_VARDIR
/
tmp
/
mysqlbinlog_row_flashback_6
.
sql
--
exec
$MYSQL_BINLOG
--
database
=
world
--
table
=
c
ity
-
B
$MYSQLD_DATADIR
/
master
-
bin
.
000001
>
$MYSQLTEST_VARDIR
/
tmp
/
mysqlbinlog_row_flashback_6
.
sql
--
exec
$MYSQL
-
e
"SET binlog_format= ROW; source
$MYSQLTEST_VARDIR
/tmp/mysqlbinlog_row_flashback_6.sql;"
--
exec
$MYSQL
-
e
"SET binlog_format= ROW; source
$MYSQLTEST_VARDIR
/tmp/mysqlbinlog_row_flashback_6.sql;"
SELECT
*
FROM
world
.
C
ity
;
SELECT
*
FROM
world
.
c
ity
;
SELECT
*
FROM
test
.
test
;
SELECT
*
FROM
test
.
test
;
CHECKSUM
TABLE
world
.
C
ity
;
CHECKSUM
TABLE
world
.
c
ity
;
DROP
TABLE
test
.
test
;
DROP
TABLE
test
.
test
;
DROP
TABLE
world
.
C
ity
;
DROP
TABLE
world
.
c
ity
;
DROP
DATABASE
world
;
DROP
DATABASE
world
;
## Clear
## Clear
...
...
mysql-test/suite/parts/r/partition_mgm_lc2_innodb.result
View file @
51256b60
This diff is collapsed.
Click to expand it.
mysql-test/suite/parts/r/partition_mgm_lc2_memory.result
View file @
51256b60
This diff is collapsed.
Click to expand it.
mysql-test/suite/parts/r/partition_mgm_lc2_myisam.result
View file @
51256b60
This diff is collapsed.
Click to expand it.
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