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
6120ae4a
Commit
6120ae4a
authored
Oct 12, 2018
by
Alexander Barkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adjusting old tests and adding new tests for "MDEV-8765: mysqldump -use utf8mb4 by default"
parent
ce643dda
Changes
10
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
190 additions
and
47 deletions
+190
-47
mysql-test/main/mysqldump-max.result
mysql-test/main/mysqldump-max.result
+2
-2
mysql-test/main/mysqldump-max.test
mysql-test/main/mysqldump-max.test
+2
-0
mysql-test/main/mysqldump-utf8mb4.result
mysql-test/main/mysqldump-utf8mb4.result
+86
-0
mysql-test/main/mysqldump-utf8mb4.test
mysql-test/main/mysqldump-utf8mb4.test
+49
-0
mysql-test/main/mysqldump.result
mysql-test/main/mysqldump.result
+41
-41
mysql-test/main/mysqldump.test
mysql-test/main/mysqldump.test
+2
-0
mysql-test/main/openssl_1.result
mysql-test/main/openssl_1.result
+3
-3
mysql-test/main/openssl_1.test
mysql-test/main/openssl_1.test
+3
-0
mysql-test/suite/compat/oracle/r/sp-package-mysqldump.result
mysql-test/suite/compat/oracle/r/sp-package-mysqldump.result
+1
-1
mysql-test/suite/compat/oracle/t/sp-package-mysqldump.test
mysql-test/suite/compat/oracle/t/sp-package-mysqldump.test
+1
-0
No files found.
mysql-test/main/mysqldump-max.result
View file @
6120ae4a
...
...
@@ -81,7 +81,7 @@ id name
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40101 SET NAMES utf8
mb4
*/;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
...
...
@@ -178,7 +178,7 @@ INSERT IGNORE INTO `t6` VALUES (1,'first value'),(2,'first value'),(3,'first va
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40101 SET NAMES utf8
mb4
*/;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
...
...
mysql-test/main/mysqldump-max.test
View file @
6120ae4a
--
source
include
/
have_utf8mb4
.
inc
# Embedded server doesn't support external clients
--
source
include
/
not_embedded
.
inc
--
source
include
/
have_innodb
.
inc
...
...
mysql-test/main/mysqldump-utf8mb4.result
0 → 100644
View file @
6120ae4a
SET NAMES utf8mb4;
#
# MDEV-8765 mysqldump silently corrupts 4-byte UTF-8 data
#
CREATE TABLE t1 (
point VARCHAR(10) PRIMARY KEY,
data VARCHAR(10),
comment VARCHAR(64)
) CHARACTER SET utf8mb4;
INSERT INTO t1 VALUES ('01f300', UNHEX('f09f8c80'), 'U+1F300 CYCLONE');
----
Testing XML format output
----
<?xml version="1.0"?>
<mysqldump xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<database name="test">
<table_structure name="t1">
<field Field="point" Type="varchar(10)" Null="NO" Key="PRI" Extra="" Comment="" />
<field Field="data" Type="varchar(10)" Null="YES" Key="" Default="NULL" Extra="" Comment="" />
<field Field="comment" Type="varchar(64)" Null="YES" Key="" Default="NULL" Extra="" Comment="" />
<key Table="t1" Non_unique="0" Key_name="PRIMARY" Seq_in_index="1" Column_name="point" Collation="A" Cardinality="1" Null="" Index_type="BTREE" Comment="" Index_comment="" />
</table_structure>
<table_data name="t1">
<row>
<field name="point">01f300</field>
<field name="data">🌀</field>
<field name="comment">U+1F300 CYCLONE</field>
</row>
</table_data>
</database>
</mysqldump>
----
Testing text format output
----
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
DROP TABLE IF EXISTS `t1`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `t1` (
`point` varchar(10) NOT NULL,
`data` varchar(10) DEFAULT NULL,
`comment` varchar(64) DEFAULT NULL,
PRIMARY KEY (`point`)
);
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `t1` WRITE;
/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
INSERT INTO `t1` VALUES ('01f300','🌀','U+1F300 CYCLONE');
/*!40000 ALTER TABLE `t1` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
DROP TABLE t1;
----
Testing text format dump/restore
----
CREATE TABLE t1 (
point VARCHAR(10) PRIMARY KEY,
data VARCHAR(10),
comment VARCHAR(64)
) CHARACTER SET utf8mb4;
INSERT INTO t1 VALUES ('01f300', UNHEX('f09f8c80'), 'U+1F300 CYCLONE');
DROP TABLE t1;
SELECT * FROM t1;
point data comment
01f300 🌀 U+1F300 CYCLONE
DROP TABLE t1;
mysql-test/main/mysqldump-utf8mb4.test
0 → 100644
View file @
6120ae4a
--
source
include
/
have_utf8mb4
.
inc
--
source
include
/
not_embedded
.
inc
SET
NAMES
utf8mb4
;
--
echo
#
--
echo
# MDEV-8765 mysqldump silently corrupts 4-byte UTF-8 data
--
echo
#
CREATE
TABLE
t1
(
point
VARCHAR
(
10
)
PRIMARY
KEY
,
data
VARCHAR
(
10
),
comment
VARCHAR
(
64
)
)
CHARACTER
SET
utf8mb4
;
INSERT
INTO
t1
VALUES
(
'01f300'
,
UNHEX
(
'f09f8c80'
),
'U+1F300 CYCLONE'
);
--
echo
----
--
echo
Testing
XML
format
output
--
echo
----
--
exec
$MYSQL_DUMP
--
skip
-
create
-
options
--
skip
-
comments
-
X
test
t1
--
echo
----
--
echo
Testing
text
format
output
--
echo
----
--
exec
$MYSQL_DUMP
--
skip
-
create
-
options
--
skip
-
comments
test
t1
DROP
TABLE
t1
;
--
echo
----
--
echo
Testing
text
format
dump
/
restore
--
echo
----
--
let
$file
=
$MYSQLTEST_VARDIR
/
tmp
/
mysqldump
-
utf8mb4
.
sql
CREATE
TABLE
t1
(
point
VARCHAR
(
10
)
PRIMARY
KEY
,
data
VARCHAR
(
10
),
comment
VARCHAR
(
64
)
)
CHARACTER
SET
utf8mb4
;
INSERT
INTO
t1
VALUES
(
'01f300'
,
UNHEX
(
'f09f8c80'
),
'U+1F300 CYCLONE'
);
--
exec
$MYSQL_DUMP
test
t1
>
$file
DROP
TABLE
t1
;
--
exec
$MYSQL
test
<
$file
SELECT
*
FROM
t1
;
DROP
TABLE
t1
;
mysql-test/main/mysqldump.result
View file @
6120ae4a
This diff is collapsed.
Click to expand it.
mysql-test/main/mysqldump.test
View file @
6120ae4a
--
source
include
/
have_utf8mb4
.
inc
call
mtr
.
add_suppression
(
"@003f.frm'
\\
(errno: 22
\\
)"
);
#select * from mysql.user;
#checksum table mysql.user;
...
...
mysql-test/main/openssl_1.result
View file @
6120ae4a
...
...
@@ -106,7 +106,7 @@ INSERT INTO t1 VALUES (1), (2);
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40101 SET NAMES utf8
mb4
*/;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
...
...
@@ -140,7 +140,7 @@ UNLOCK TABLES;
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40101 SET NAMES utf8
mb4
*/;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
...
...
@@ -174,7 +174,7 @@ UNLOCK TABLES;
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40101 SET NAMES utf8
mb4
*/;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
...
...
mysql-test/main/openssl_1.test
View file @
6120ae4a
# Needed for mysqldump
--
source
include
/
have_utf8mb4
.
inc
# Tests for SSL connections, only run if mysqld is compiled
# with support for SSL.
...
...
mysql-test/suite/compat/oracle/r/sp-package-mysqldump.result
View file @
6120ae4a
...
...
@@ -38,7 +38,7 @@ $$
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40101 SET NAMES utf8
mb4
*/;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
...
...
mysql-test/suite/compat/oracle/t/sp-package-mysqldump.test
View file @
6120ae4a
--
source
include
/
have_utf8mb4
.
inc
--
source
include
/
not_embedded
.
inc
SET
sql_mode
=
ORACLE
;
...
...
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