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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
99d1cdcb
Commit
99d1cdcb
authored
Feb 19, 2009
by
Tatiana A. Nurnberg
Browse files
Options
Browse Files
Download
Plain Diff
manual merge
parents
e89fddc6
4a3f5b2b
Changes
7
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
345 additions
and
260 deletions
+345
-260
client/mysqldump.c
client/mysqldump.c
+6
-5
mysql-test/r/ddl_i18n_koi8r.result
mysql-test/r/ddl_i18n_koi8r.result
+12
-12
mysql-test/r/ddl_i18n_utf8.result
mysql-test/r/ddl_i18n_utf8.result
+12
-12
mysql-test/r/mysqldump-max.result
mysql-test/r/mysqldump-max.result
+36
-36
mysql-test/r/mysqldump.result
mysql-test/r/mysqldump.result
+252
-186
mysql-test/r/openssl_1.result
mysql-test/r/openssl_1.result
+9
-9
mysql-test/t/mysqldump.test
mysql-test/t/mysqldump.test
+18
-0
No files found.
client/mysqldump.c
View file @
99d1cdcb
...
@@ -1475,7 +1475,8 @@ static int connect_to_db(char *host, char *user,char *passwd)
...
@@ -1475,7 +1475,8 @@ static int connect_to_db(char *host, char *user,char *passwd)
DB_error
(
&
mysql_connection
,
"when trying to connect"
);
DB_error
(
&
mysql_connection
,
"when trying to connect"
);
DBUG_RETURN
(
1
);
DBUG_RETURN
(
1
);
}
}
if
(
mysql_get_server_version
(
&
mysql_connection
)
<
40100
)
if
((
mysql_get_server_version
(
&
mysql_connection
)
<
40100
)
||
(
opt_compatible_mode
&
3
))
{
{
/* Don't dump SET NAMES with a pre-4.1 server (bug#7997). */
/* Don't dump SET NAMES with a pre-4.1 server (bug#7997). */
opt_set_charset
=
0
;
opt_set_charset
=
0
;
...
@@ -2421,11 +2422,11 @@ static uint get_table_structure(char *table, char *db, char *table_type,
...
@@ -2421,11 +2422,11 @@ static uint get_table_structure(char *table, char *db, char *table_type,
row
=
mysql_fetch_row
(
result
);
row
=
mysql_fetch_row
(
result
);
fprintf
(
sql_file
,
fprintf
(
sql_file
,
(
opt_compatible_mode
&
3
)
?
"%s;
\n
"
:
"
SET @saved_cs_client = @@character_set_client
;
\n
"
"
/*!40101 SET @saved_cs_client = @@character_set_client */
;
\n
"
"
SET character_set_client = utf8
;
\n
"
"
/*!40101 SET character_set_client = utf8 */
;
\n
"
"%s;
\n
"
"%s;
\n
"
"
SET character_set_client = @saved_cs_client
;
\n
"
,
"
/*!40101 SET character_set_client = @saved_cs_client */
;
\n
"
,
row
[
1
]);
row
[
1
]);
check_io
(
sql_file
);
check_io
(
sql_file
);
...
...
mysql-test/r/ddl_i18n_koi8r.result
View file @
99d1cdcb
...
@@ -1729,18 +1729,18 @@ DELETE FROM mysqltest2.log|
...
@@ -1729,18 +1729,18 @@ DELETE FROM mysqltest2.log|
CREATE DATABASE /*!32312 IF NOT EXISTS*/ `mysqltest1` /*!40100 DEFAULT CHARACTER SET cp866 */;
CREATE DATABASE /*!32312 IF NOT EXISTS*/ `mysqltest1` /*!40100 DEFAULT CHARACTER SET cp866 */;
USE `mysqltest1`;
USE `mysqltest1`;
SET @saved_cs_client = @@character_set_client
;
/*!40101
SET @saved_cs_client = @@character_set_client */
;
SET character_set_client = utf8
;
/*!40101
SET character_set_client = utf8 */
;
CREATE TABLE `log` (
CREATE TABLE `log` (
`msg` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL
`msg` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL
)
ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
)
ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
SET character_set_client = @saved_cs_client
;
/*!40101
SET character_set_client = @saved_cs_client */
;
SET @saved_cs_client = @@character_set_client
;
/*!40101
SET @saved_cs_client = @@character_set_client */
;
SET character_set_client = utf8
;
/*!40101
SET character_set_client = utf8 */
;
CREATE TABLE `t1` (
CREATE TABLE `t1` (
`c` int(11) DEFAULT NULL
`c` int(11) DEFAULT NULL
)
ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
)
ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
SET character_set_client = @saved_cs_client
;
/*!40101
SET character_set_client = @saved_cs_client */
;
INSERT INTO `t1` VALUES (1),(0),(1);
INSERT INTO `t1` VALUES (1),(0),(1);
ALTER DATABASE mysqltest1 CHARACTER SET utf8 COLLATE utf8_unicode_ci ;
ALTER DATABASE mysqltest1 CHARACTER SET utf8 COLLATE utf8_unicode_ci ;
/*!50003
SET @saved_cs_client = @@character_set_client */ ;
/*!50003
SET @saved_cs_client = @@character_set_client */ ;
...
@@ -1808,18 +1808,18 @@ ALTER DATABASE mysqltest1 CHARACTER SET cp866 COLLATE cp866_general_ci ;
...
@@ -1808,18 +1808,18 @@ ALTER DATABASE mysqltest1 CHARACTER SET cp866 COLLATE cp866_general_ci ;
CREATE DATABASE /*!32312 IF NOT EXISTS*/ `mysqltest2` /*!40100 DEFAULT CHARACTER SET cp866 */;
CREATE DATABASE /*!32312 IF NOT EXISTS*/ `mysqltest2` /*!40100 DEFAULT CHARACTER SET cp866 */;
USE `mysqltest2`;
USE `mysqltest2`;
SET @saved_cs_client = @@character_set_client
;
/*!40101
SET @saved_cs_client = @@character_set_client */
;
SET character_set_client = utf8
;
/*!40101
SET character_set_client = utf8 */
;
CREATE TABLE `log` (
CREATE TABLE `log` (
`msg` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL
`msg` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL
)
ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
)
ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
SET character_set_client = @saved_cs_client
;
/*!40101
SET character_set_client = @saved_cs_client */
;
SET @saved_cs_client = @@character_set_client
;
/*!40101
SET @saved_cs_client = @@character_set_client */
;
SET character_set_client = utf8
;
/*!40101
SET character_set_client = utf8 */
;
CREATE TABLE `t1` (
CREATE TABLE `t1` (
`c` int(11) DEFAULT NULL
`c` int(11) DEFAULT NULL
)
ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
)
ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
SET character_set_client = @saved_cs_client
;
/*!40101
SET character_set_client = @saved_cs_client */
;
INSERT INTO `t1` VALUES (1),(0),(1);
INSERT INTO `t1` VALUES (1),(0),(1);
ALTER DATABASE mysqltest2 CHARACTER SET utf8 COLLATE utf8_unicode_ci ;
ALTER DATABASE mysqltest2 CHARACTER SET utf8 COLLATE utf8_unicode_ci ;
/*!50003
SET @saved_cs_client = @@character_set_client */ ;
/*!50003
SET @saved_cs_client = @@character_set_client */ ;
...
...
mysql-test/r/ddl_i18n_utf8.result
View file @
99d1cdcb
...
@@ -1729,18 +1729,18 @@ DELETE FROM mysqltest2.log|
...
@@ -1729,18 +1729,18 @@ DELETE FROM mysqltest2.log|
CREATE DATABASE /*!32312 IF NOT EXISTS*/ `mysqltest1` /*!40100 DEFAULT CHARACTER SET cp866 */;
CREATE DATABASE /*!32312 IF NOT EXISTS*/ `mysqltest1` /*!40100 DEFAULT CHARACTER SET cp866 */;
USE `mysqltest1`;
USE `mysqltest1`;
SET @saved_cs_client = @@character_set_client
;
/*!40101
SET @saved_cs_client = @@character_set_client */
;
SET character_set_client = utf8
;
/*!40101
SET character_set_client = utf8 */
;
CREATE TABLE `log` (
CREATE TABLE `log` (
`msg` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL
`msg` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL
)
ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
)
ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
SET character_set_client = @saved_cs_client
;
/*!40101
SET character_set_client = @saved_cs_client */
;
SET @saved_cs_client = @@character_set_client
;
/*!40101
SET @saved_cs_client = @@character_set_client */
;
SET character_set_client = utf8
;
/*!40101
SET character_set_client = utf8 */
;
CREATE TABLE `t1` (
CREATE TABLE `t1` (
`c` int(11) DEFAULT NULL
`c` int(11) DEFAULT NULL
)
ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
)
ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
SET character_set_client = @saved_cs_client
;
/*!40101
SET character_set_client = @saved_cs_client */
;
INSERT INTO `t1` VALUES (1),(0),(1);
INSERT INTO `t1` VALUES (1),(0),(1);
ALTER DATABASE mysqltest1 CHARACTER SET utf8 COLLATE utf8_unicode_ci ;
ALTER DATABASE mysqltest1 CHARACTER SET utf8 COLLATE utf8_unicode_ci ;
/*!50003
SET @saved_cs_client = @@character_set_client */ ;
/*!50003
SET @saved_cs_client = @@character_set_client */ ;
...
@@ -1808,18 +1808,18 @@ ALTER DATABASE mysqltest1 CHARACTER SET cp866 COLLATE cp866_general_ci ;
...
@@ -1808,18 +1808,18 @@ ALTER DATABASE mysqltest1 CHARACTER SET cp866 COLLATE cp866_general_ci ;
CREATE DATABASE /*!32312 IF NOT EXISTS*/ `mysqltest2` /*!40100 DEFAULT CHARACTER SET cp866 */;
CREATE DATABASE /*!32312 IF NOT EXISTS*/ `mysqltest2` /*!40100 DEFAULT CHARACTER SET cp866 */;
USE `mysqltest2`;
USE `mysqltest2`;
SET @saved_cs_client = @@character_set_client
;
/*!40101
SET @saved_cs_client = @@character_set_client */
;
SET character_set_client = utf8
;
/*!40101
SET character_set_client = utf8 */
;
CREATE TABLE `log` (
CREATE TABLE `log` (
`msg` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL
`msg` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL
)
ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
)
ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
SET character_set_client = @saved_cs_client
;
/*!40101
SET character_set_client = @saved_cs_client */
;
SET @saved_cs_client = @@character_set_client
;
/*!40101
SET @saved_cs_client = @@character_set_client */
;
SET character_set_client = utf8
;
/*!40101
SET character_set_client = utf8 */
;
CREATE TABLE `t1` (
CREATE TABLE `t1` (
`c` int(11) DEFAULT NULL
`c` int(11) DEFAULT NULL
)
ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
)
ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
SET character_set_client = @saved_cs_client
;
/*!40101
SET character_set_client = @saved_cs_client */
;
INSERT INTO `t1` VALUES (1),(0),(1);
INSERT INTO `t1` VALUES (1),(0),(1);
ALTER DATABASE mysqltest2 CHARACTER SET utf8 COLLATE utf8_unicode_ci ;
ALTER DATABASE mysqltest2 CHARACTER SET utf8 COLLATE utf8_unicode_ci ;
/*!50003
SET @saved_cs_client = @@character_set_client */ ;
/*!50003
SET @saved_cs_client = @@character_set_client */ ;
...
...
mysql-test/r/mysqldump-max.result
View file @
99d1cdcb
...
@@ -93,73 +93,73 @@ CREATE DATABASE /*!32312 IF NOT EXISTS*/ `test` /*!40100 DEFAULT CHARACTER SET l
...
@@ -93,73 +93,73 @@ CREATE DATABASE /*!32312 IF NOT EXISTS*/ `test` /*!40100 DEFAULT CHARACTER SET l
USE `test`;
USE `test`;
DROP TABLE IF EXISTS `t1`;
DROP TABLE IF EXISTS `t1`;
SET @saved_cs_client = @@character_set_client
;
/*!40101 SET @saved_cs_client = @@character_set_client */
;
SET character_set_client = utf8
;
/*!40101 SET character_set_client = utf8 */
;
CREATE TABLE `t1` (
CREATE TABLE `t1` (
`id` int(8) DEFAULT NULL,
`id` int(8) DEFAULT NULL,
`name` varchar(32) DEFAULT NULL
`name` varchar(32) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client
;
/*!40101 SET character_set_client = @saved_cs_client */
;
/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
INSERT DELAYED IGNORE INTO `t1` VALUES (1,'first value'),(2,'first value'),(3,'first value'),(4,'first value'),(5,'first value');
INSERT DELAYED IGNORE INTO `t1` VALUES (1,'first value'),(2,'first value'),(3,'first value'),(4,'first value'),(5,'first value');
/*!40000 ALTER TABLE `t1` ENABLE KEYS */;
/*!40000 ALTER TABLE `t1` ENABLE KEYS */;
DROP TABLE IF EXISTS `t2`;
DROP TABLE IF EXISTS `t2`;
SET @saved_cs_client = @@character_set_client
;
/*!40101 SET @saved_cs_client = @@character_set_client */
;
SET character_set_client = utf8
;
/*!40101 SET character_set_client = utf8 */
;
CREATE TABLE `t2` (
CREATE TABLE `t2` (
`id` int(8) DEFAULT NULL,
`id` int(8) DEFAULT NULL,
`name` varchar(32) DEFAULT NULL
`name` varchar(32) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client
;
/*!40101 SET character_set_client = @saved_cs_client */
;
/*!40000 ALTER TABLE `t2` DISABLE KEYS */;
/*!40000 ALTER TABLE `t2` DISABLE KEYS */;
INSERT DELAYED IGNORE INTO `t2` VALUES (1,'first value'),(2,'first value'),(3,'first value'),(4,'first value'),(5,'first value');
INSERT DELAYED IGNORE INTO `t2` VALUES (1,'first value'),(2,'first value'),(3,'first value'),(4,'first value'),(5,'first value');
/*!40000 ALTER TABLE `t2` ENABLE KEYS */;
/*!40000 ALTER TABLE `t2` ENABLE KEYS */;
DROP TABLE IF EXISTS `t3`;
DROP TABLE IF EXISTS `t3`;
SET @saved_cs_client = @@character_set_client
;
/*!40101 SET @saved_cs_client = @@character_set_client */
;
SET character_set_client = utf8
;
/*!40101 SET character_set_client = utf8 */
;
CREATE TABLE `t3` (
CREATE TABLE `t3` (
`id` int(8) DEFAULT NULL,
`id` int(8) DEFAULT NULL,
`name` varchar(32) DEFAULT NULL
`name` varchar(32) DEFAULT NULL
) ENGINE=MEMORY DEFAULT CHARSET=latin1;
) ENGINE=MEMORY DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client
;
/*!40101 SET character_set_client = @saved_cs_client */
;
/*!40000 ALTER TABLE `t3` DISABLE KEYS */;
/*!40000 ALTER TABLE `t3` DISABLE KEYS */;
INSERT DELAYED IGNORE INTO `t3` VALUES (1,'first value'),(2,'first value'),(3,'first value'),(4,'first value'),(5,'first value');
INSERT DELAYED IGNORE INTO `t3` VALUES (1,'first value'),(2,'first value'),(3,'first value'),(4,'first value'),(5,'first value');
/*!40000 ALTER TABLE `t3` ENABLE KEYS */;
/*!40000 ALTER TABLE `t3` ENABLE KEYS */;
DROP TABLE IF EXISTS `t4`;
DROP TABLE IF EXISTS `t4`;
SET @saved_cs_client = @@character_set_client
;
/*!40101 SET @saved_cs_client = @@character_set_client */
;
SET character_set_client = utf8
;
/*!40101 SET character_set_client = utf8 */
;
CREATE TABLE `t4` (
CREATE TABLE `t4` (
`id` int(8) DEFAULT NULL,
`id` int(8) DEFAULT NULL,
`name` varchar(32) DEFAULT NULL
`name` varchar(32) DEFAULT NULL
) ENGINE=MEMORY DEFAULT CHARSET=latin1;
) ENGINE=MEMORY DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client
;
/*!40101 SET character_set_client = @saved_cs_client */
;
/*!40000 ALTER TABLE `t4` DISABLE KEYS */;
/*!40000 ALTER TABLE `t4` DISABLE KEYS */;
INSERT DELAYED IGNORE INTO `t4` VALUES (1,'first value'),(2,'first value'),(3,'first value'),(4,'first value'),(5,'first value');
INSERT DELAYED IGNORE INTO `t4` VALUES (1,'first value'),(2,'first value'),(3,'first value'),(4,'first value'),(5,'first value');
/*!40000 ALTER TABLE `t4` ENABLE KEYS */;
/*!40000 ALTER TABLE `t4` ENABLE KEYS */;
DROP TABLE IF EXISTS `t5`;
DROP TABLE IF EXISTS `t5`;
SET @saved_cs_client = @@character_set_client
;
/*!40101 SET @saved_cs_client = @@character_set_client */
;
SET character_set_client = utf8
;
/*!40101 SET character_set_client = utf8 */
;
CREATE TABLE `t5` (
CREATE TABLE `t5` (
`id` int(8) DEFAULT NULL,
`id` int(8) DEFAULT NULL,
`name` varchar(32) DEFAULT NULL
`name` varchar(32) DEFAULT NULL
) ENGINE=ARCHIVE DEFAULT CHARSET=latin1;
) ENGINE=ARCHIVE DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client
;
/*!40101 SET character_set_client = @saved_cs_client */
;
/*!40000 ALTER TABLE `t5` DISABLE KEYS */;
/*!40000 ALTER TABLE `t5` DISABLE KEYS */;
INSERT DELAYED IGNORE INTO `t5` VALUES (1,'first value'),(2,'first value'),(3,'first value'),(4,'first value'),(5,'first value');
INSERT DELAYED IGNORE INTO `t5` VALUES (1,'first value'),(2,'first value'),(3,'first value'),(4,'first value'),(5,'first value');
/*!40000 ALTER TABLE `t5` ENABLE KEYS */;
/*!40000 ALTER TABLE `t5` ENABLE KEYS */;
DROP TABLE IF EXISTS `t6`;
DROP TABLE IF EXISTS `t6`;
SET @saved_cs_client = @@character_set_client
;
/*!40101 SET @saved_cs_client = @@character_set_client */
;
SET character_set_client = utf8
;
/*!40101 SET character_set_client = utf8 */
;
CREATE TABLE `t6` (
CREATE TABLE `t6` (
`id` int(8) DEFAULT NULL,
`id` int(8) DEFAULT NULL,
`name` varchar(32) DEFAULT NULL
`name` varchar(32) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client
;
/*!40101 SET character_set_client = @saved_cs_client */
;
/*!40000 ALTER TABLE `t6` DISABLE KEYS */;
/*!40000 ALTER TABLE `t6` DISABLE KEYS */;
INSERT IGNORE INTO `t6` VALUES (1,'first value'),(2,'first value'),(3,'first value'),(4,'first value'),(5,'first value');
INSERT IGNORE INTO `t6` VALUES (1,'first value'),(2,'first value'),(3,'first value'),(4,'first value'),(5,'first value');
...
@@ -190,73 +190,73 @@ CREATE DATABASE /*!32312 IF NOT EXISTS*/ `test` /*!40100 DEFAULT CHARACTER SET l
...
@@ -190,73 +190,73 @@ CREATE DATABASE /*!32312 IF NOT EXISTS*/ `test` /*!40100 DEFAULT CHARACTER SET l
USE `test`;
USE `test`;
DROP TABLE IF EXISTS `t1`;
DROP TABLE IF EXISTS `t1`;
SET @saved_cs_client = @@character_set_client
;
/*!40101 SET @saved_cs_client = @@character_set_client */
;
SET character_set_client = utf8
;
/*!40101 SET character_set_client = utf8 */
;
CREATE TABLE `t1` (
CREATE TABLE `t1` (
`id` int(8) DEFAULT NULL,
`id` int(8) DEFAULT NULL,
`name` varchar(32) DEFAULT NULL
`name` varchar(32) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client
;
/*!40101 SET character_set_client = @saved_cs_client */
;
/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
INSERT DELAYED INTO `t1` VALUES (1,'first value'),(2,'first value'),(3,'first value'),(4,'first value'),(5,'first value');
INSERT DELAYED INTO `t1` VALUES (1,'first value'),(2,'first value'),(3,'first value'),(4,'first value'),(5,'first value');
/*!40000 ALTER TABLE `t1` ENABLE KEYS */;
/*!40000 ALTER TABLE `t1` ENABLE KEYS */;
DROP TABLE IF EXISTS `t2`;
DROP TABLE IF EXISTS `t2`;
SET @saved_cs_client = @@character_set_client
;
/*!40101 SET @saved_cs_client = @@character_set_client */
;
SET character_set_client = utf8
;
/*!40101 SET character_set_client = utf8 */
;
CREATE TABLE `t2` (
CREATE TABLE `t2` (
`id` int(8) DEFAULT NULL,
`id` int(8) DEFAULT NULL,
`name` varchar(32) DEFAULT NULL
`name` varchar(32) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client
;
/*!40101 SET character_set_client = @saved_cs_client */
;
/*!40000 ALTER TABLE `t2` DISABLE KEYS */;
/*!40000 ALTER TABLE `t2` DISABLE KEYS */;
INSERT DELAYED INTO `t2` VALUES (1,'first value'),(2,'first value'),(3,'first value'),(4,'first value'),(5,'first value');
INSERT DELAYED INTO `t2` VALUES (1,'first value'),(2,'first value'),(3,'first value'),(4,'first value'),(5,'first value');
/*!40000 ALTER TABLE `t2` ENABLE KEYS */;
/*!40000 ALTER TABLE `t2` ENABLE KEYS */;
DROP TABLE IF EXISTS `t3`;
DROP TABLE IF EXISTS `t3`;
SET @saved_cs_client = @@character_set_client
;
/*!40101 SET @saved_cs_client = @@character_set_client */
;
SET character_set_client = utf8
;
/*!40101 SET character_set_client = utf8 */
;
CREATE TABLE `t3` (
CREATE TABLE `t3` (
`id` int(8) DEFAULT NULL,
`id` int(8) DEFAULT NULL,
`name` varchar(32) DEFAULT NULL
`name` varchar(32) DEFAULT NULL
) ENGINE=MEMORY DEFAULT CHARSET=latin1;
) ENGINE=MEMORY DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client
;
/*!40101 SET character_set_client = @saved_cs_client */
;
/*!40000 ALTER TABLE `t3` DISABLE KEYS */;
/*!40000 ALTER TABLE `t3` DISABLE KEYS */;
INSERT DELAYED INTO `t3` VALUES (1,'first value'),(2,'first value'),(3,'first value'),(4,'first value'),(5,'first value');
INSERT DELAYED INTO `t3` VALUES (1,'first value'),(2,'first value'),(3,'first value'),(4,'first value'),(5,'first value');
/*!40000 ALTER TABLE `t3` ENABLE KEYS */;
/*!40000 ALTER TABLE `t3` ENABLE KEYS */;
DROP TABLE IF EXISTS `t4`;
DROP TABLE IF EXISTS `t4`;
SET @saved_cs_client = @@character_set_client
;
/*!40101 SET @saved_cs_client = @@character_set_client */
;
SET character_set_client = utf8
;
/*!40101 SET character_set_client = utf8 */
;
CREATE TABLE `t4` (
CREATE TABLE `t4` (
`id` int(8) DEFAULT NULL,
`id` int(8) DEFAULT NULL,
`name` varchar(32) DEFAULT NULL
`name` varchar(32) DEFAULT NULL
) ENGINE=MEMORY DEFAULT CHARSET=latin1;
) ENGINE=MEMORY DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client
;
/*!40101 SET character_set_client = @saved_cs_client */
;
/*!40000 ALTER TABLE `t4` DISABLE KEYS */;
/*!40000 ALTER TABLE `t4` DISABLE KEYS */;
INSERT DELAYED INTO `t4` VALUES (1,'first value'),(2,'first value'),(3,'first value'),(4,'first value'),(5,'first value');
INSERT DELAYED INTO `t4` VALUES (1,'first value'),(2,'first value'),(3,'first value'),(4,'first value'),(5,'first value');
/*!40000 ALTER TABLE `t4` ENABLE KEYS */;
/*!40000 ALTER TABLE `t4` ENABLE KEYS */;
DROP TABLE IF EXISTS `t5`;
DROP TABLE IF EXISTS `t5`;
SET @saved_cs_client = @@character_set_client
;
/*!40101 SET @saved_cs_client = @@character_set_client */
;
SET character_set_client = utf8
;
/*!40101 SET character_set_client = utf8 */
;
CREATE TABLE `t5` (
CREATE TABLE `t5` (
`id` int(8) DEFAULT NULL,
`id` int(8) DEFAULT NULL,
`name` varchar(32) DEFAULT NULL
`name` varchar(32) DEFAULT NULL
) ENGINE=ARCHIVE DEFAULT CHARSET=latin1;
) ENGINE=ARCHIVE DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client
;
/*!40101 SET character_set_client = @saved_cs_client */
;
/*!40000 ALTER TABLE `t5` DISABLE KEYS */;
/*!40000 ALTER TABLE `t5` DISABLE KEYS */;
INSERT DELAYED INTO `t5` VALUES (1,'first value'),(2,'first value'),(3,'first value'),(4,'first value'),(5,'first value');
INSERT DELAYED INTO `t5` VALUES (1,'first value'),(2,'first value'),(3,'first value'),(4,'first value'),(5,'first value');
/*!40000 ALTER TABLE `t5` ENABLE KEYS */;
/*!40000 ALTER TABLE `t5` ENABLE KEYS */;
DROP TABLE IF EXISTS `t6`;
DROP TABLE IF EXISTS `t6`;
SET @saved_cs_client = @@character_set_client
;
/*!40101 SET @saved_cs_client = @@character_set_client */
;
SET character_set_client = utf8
;
/*!40101 SET character_set_client = utf8 */
;
CREATE TABLE `t6` (
CREATE TABLE `t6` (
`id` int(8) DEFAULT NULL,
`id` int(8) DEFAULT NULL,
`name` varchar(32) DEFAULT NULL
`name` varchar(32) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client
;
/*!40101 SET character_set_client = @saved_cs_client */
;
/*!40000 ALTER TABLE `t6` DISABLE KEYS */;
/*!40000 ALTER TABLE `t6` DISABLE KEYS */;
INSERT INTO `t6` VALUES (1,'first value'),(2,'first value'),(3,'first value'),(4,'first value'),(5,'first value');
INSERT INTO `t6` VALUES (1,'first value'),(2,'first value'),(3,'first value'),(4,'first value'),(5,'first value');
...
...
mysql-test/r/mysqldump.result
View file @
99d1cdcb
This diff is collapsed.
Click to expand it.
mysql-test/r/openssl_1.result
View file @
99d1cdcb
...
@@ -98,12 +98,12 @@ INSERT INTO t1 VALUES (1), (2);
...
@@ -98,12 +98,12 @@ INSERT INTO t1 VALUES (1), (2);
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
DROP TABLE IF EXISTS `t1`;
DROP TABLE IF EXISTS `t1`;
SET @saved_cs_client = @@character_set_client
;
/*!40101 SET @saved_cs_client = @@character_set_client */
;
SET character_set_client = utf8
;
/*!40101 SET character_set_client = utf8 */
;
CREATE TABLE `t1` (
CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL
`a` int(11) DEFAULT NULL
);
);
SET character_set_client = @saved_cs_client
;
/*!40101 SET character_set_client = @saved_cs_client */
;
LOCK TABLES `t1` WRITE;
LOCK TABLES `t1` WRITE;
/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
...
@@ -132,12 +132,12 @@ UNLOCK TABLES;
...
@@ -132,12 +132,12 @@ UNLOCK TABLES;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
DROP TABLE IF EXISTS `t1`;
DROP TABLE IF EXISTS `t1`;
SET @saved_cs_client = @@character_set_client
;
/*!40101 SET @saved_cs_client = @@character_set_client */
;
SET character_set_client = utf8
;
/*!40101 SET character_set_client = utf8 */
;
CREATE TABLE `t1` (
CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL
`a` int(11) DEFAULT NULL
);
);
SET character_set_client = @saved_cs_client
;
/*!40101 SET character_set_client = @saved_cs_client */
;
LOCK TABLES `t1` WRITE;
LOCK TABLES `t1` WRITE;
/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
...
@@ -166,12 +166,12 @@ UNLOCK TABLES;
...
@@ -166,12 +166,12 @@ UNLOCK TABLES;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
DROP TABLE IF EXISTS `t1`;
DROP TABLE IF EXISTS `t1`;
SET @saved_cs_client = @@character_set_client
;
/*!40101 SET @saved_cs_client = @@character_set_client */
;
SET character_set_client = utf8
;
/*!40101 SET character_set_client = utf8 */
;
CREATE TABLE `t1` (
CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL
`a` int(11) DEFAULT NULL
);
);
SET character_set_client = @saved_cs_client
;
/*!40101 SET character_set_client = @saved_cs_client */
;
LOCK TABLES `t1` WRITE;
LOCK TABLES `t1` WRITE;
/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
...
...
mysql-test/t/mysqldump.test
View file @
99d1cdcb
...
@@ -1648,6 +1648,24 @@ DROP TABLE t1,t2;
...
@@ -1648,6 +1648,24 @@ DROP TABLE t1,t2;
--
exec
$MYSQL_DUMP
test
--
exec
$MYSQL_DUMP
test
--
echo
#
--
echo
# Bug#33550 mysqldump 4.0 compatibility broken
--
echo
#
SET
NAMES
utf8
;
CREATE
TABLE
`straße`
(
f1
INT
);
--
exec
$MYSQL_DUMP
--
character
-
sets
-
dir
=
$CHARSETSDIR
--
skip
-
comments
--
default
-
character
-
set
=
utf8
--
compatible
=
mysql323
test
--
exec
$MYSQL_DUMP
--
character
-
sets
-
dir
=
$CHARSETSDIR
--
skip
-
comments
--
default
-
character
-
set
=
latin1
--
compatible
=
mysql323
test
DROP
TABLE
`straße`
;
CREATE
TABLE
`כדשגכחךלדגכחשךדגחכךלדגכ`
(
f1
INT
);
--
exec
$MYSQL_DUMP
--
character
-
sets
-
dir
=
$CHARSETSDIR
--
skip
-
comments
--
default
-
character
-
set
=
utf8
--
compatible
=
mysql323
test
--
error
2
--
exec
$MYSQL_DUMP
--
character
-
sets
-
dir
=
$CHARSETSDIR
--
skip
-
comments
--
default
-
character
-
set
=
latin1
--
compatible
=
mysql323
test
DROP
TABLE
`כדשגכחךלדגכחשךדגחכךלדגכ`
;
SET
NAMES
latin1
;
--
echo
#
--
echo
#
--
echo
# End of 5.0 tests
--
echo
# End of 5.0 tests
--
echo
#
--
echo
#
...
...
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