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
94e37bc3
Commit
94e37bc3
authored
Jun 22, 2005
by
msvensson@neptunus.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cset exclude: msvensson@neptunus.(none)|ChangeSet|20050622121209|37729
parent
777e1d78
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
97 deletions
+4
-97
mysql-test/r/mysqldump.result
mysql-test/r/mysqldump.result
+3
-3
mysql-test/t/mysqldump.test
mysql-test/t/mysqldump.test
+1
-94
No files found.
mysql-test/r/mysqldump.result
View file @
94e37bc3
...
...
@@ -439,7 +439,7 @@ USE `mysqldump_test_db`;
drop database mysqldump_test_db;
CREATE TABLE t1 (a CHAR(10));
INSERT INTO t1 VALUES (_latin1 '
ÄÖÜß
');
INSERT INTO t1 VALUES (_latin1 '');
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
...
...
@@ -481,7 +481,7 @@ CREATE TABLE `t1` (
/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
LOCK TABLES `t1` WRITE;
INSERT INTO `t1` VALUES ('
á
');
INSERT INTO `t1` VALUES ('');
UNLOCK TABLES;
/*!40000 ALTER TABLE `t1` ENABLE KEYS */;
...
...
@@ -502,7 +502,7 @@ CREATE TABLE `t1` (
/*!40000 ALTER TABLE `t1` DISABLE KEYS */;
LOCK TABLES `t1` WRITE;
INSERT INTO `t1` VALUES ('
á
');
INSERT INTO `t1` VALUES ('');
UNLOCK TABLES;
/*!40000 ALTER TABLE `t1` ENABLE KEYS */;
...
...
mysql-test/t/mysqldump.test
View file @
94e37bc3
...
...
@@ -161,7 +161,7 @@ drop database mysqldump_test_db;
# if it is explicitely set.
CREATE
TABLE
t1
(
a
CHAR
(
10
));
INSERT
INTO
t1
VALUES
(
_latin1
'
ÄÖÜß
'
);
INSERT
INTO
t1
VALUES
(
_latin1
''
);
--
exec
$MYSQL_DUMP
--
character
-
sets
-
dir
=
$CHARSETSDIR
--
skip
-
comments
test
t1
#
# Bug#8063: make test mysqldump [ fail ]
...
...
@@ -565,99 +565,6 @@ INSERT INTO t1 VALUES (1),(2),(3);
--
exec
$MYSQL_DUMP
--
add
-
drop
-
database
--
skip
-
comments
--
databases
test
DROP
TABLE
t1
;
#
# Bug #9558 mysqldump --no-data db t1 t2 format still dumps data
#
CREATE
DATABASE
mysqldump_test_db
;
USE
mysqldump_test_db
;
CREATE
TABLE
t1
(
a
INT
);
CREATE
TABLE
t2
(
a
INT
);
INSERT
INTO
t1
VALUES
(
1
),
(
2
);
INSERT
INTO
t2
VALUES
(
1
),
(
2
);
--
exec
$MYSQL_DUMP
--
skip
-
comments
--
no
-
data
mysqldump_test_db
--
exec
$MYSQL_DUMP
--
skip
-
comments
--
no
-
data
mysqldump_test_db
t1
t2
DROP
TABLE
t1
,
t2
;
DROP
DATABASE
mysqldump_test_db
;
#
# Testing with tables and databases that don't exists
# or contains illegal characters
# (Bug #9358 mysqldump crashes if tablename starts with \)
#
create
database
mysqldump_test_db
;
use
mysqldump_test_db
;
create
table
t1
(
a
varchar
(
30
)
primary
key
,
b
int
not
null
);
create
table
t2
(
a
varchar
(
30
)
primary
key
,
b
int
not
null
);
create
table
t3
(
a
varchar
(
30
)
primary
key
,
b
int
not
null
);
--
disable_query_log
select
'------ Testing with illegal table names ------'
as
test_sequence
;
--
enable_query_log
--
replace_result
$MYSQL_DUMP_DIR
MYSQL_DUMP_DIR
--
error
6
--
exec
$MYSQL_DUMP
--
compact
--
skip
-
comments
mysqldump_test_db
"\d-2-1.sql"
2
>&
1
--
replace_result
$MYSQL_DUMP_DIR
MYSQL_DUMP_DIR
--
error
6
--
exec
$MYSQL_DUMP
--
compact
--
skip
-
comments
mysqldump_test_db
"
\t
1"
2
>&
1
--
replace_result
$MYSQL_DUMP_DIR
MYSQL_DUMP_DIR
--
error
6
--
exec
$MYSQL_DUMP
--
compact
--
skip
-
comments
mysqldump_test_db
"
\\
t1"
2
>&
1
--
replace_result
$MYSQL_DUMP_DIR
MYSQL_DUMP_DIR
--
error
6
--
exec
$MYSQL_DUMP
--
compact
--
skip
-
comments
mysqldump_test_db
"
\\\\
t1"
2
>&
1
--
replace_result
$MYSQL_DUMP_DIR
MYSQL_DUMP_DIR
--
error
6
--
exec
$MYSQL_DUMP
--
compact
--
skip
-
comments
mysqldump_test_db
"t
\1
"
2
>&
1
--
replace_result
$MYSQL_DUMP_DIR
MYSQL_DUMP_DIR
--
error
6
--
exec
$MYSQL_DUMP
--
compact
--
skip
-
comments
mysqldump_test_db
"t
\\
1"
2
>&
1
--
replace_result
$MYSQL_DUMP_DIR
MYSQL_DUMP_DIR
--
error
6
--
exec
$MYSQL_DUMP
--
compact
--
skip
-
comments
mysqldump_test_db
"t/1"
2
>&
1
--
replace_result
$MYSQL_DUMP_DIR
MYSQL_DUMP_DIR
--
error
6
--
exec
$MYSQL_DUMP
--
compact
--
skip
-
comments
"mysqldump_test_db"
"T_1"
--
replace_result
$MYSQL_DUMP_DIR
MYSQL_DUMP_DIR
--
error
6
--
exec
$MYSQL_DUMP
--
compact
--
skip
-
comments
"mysqldump_test_db"
"T%1"
--
replace_result
$MYSQL_DUMP_DIR
MYSQL_DUMP_DIR
--
error
6
--
exec
$MYSQL_DUMP
--
compact
--
skip
-
comments
"mysqldump_test_db"
"T'1"
--
replace_result
$MYSQL_DUMP_DIR
MYSQL_DUMP_DIR
--
error
6
--
exec
$MYSQL_DUMP
--
compact
--
skip
-
comments
"mysqldump_test_db"
"T_1"
--
replace_result
$MYSQL_DUMP_DIR
MYSQL_DUMP_DIR
--
error
6
--
exec
$MYSQL_DUMP
--
compact
--
skip
-
comments
"mysqldump_test_db"
"T_"
--
disable_query_log
select
'------ Testing with illegal database names ------'
as
test_sequence
;
--
enable_query_log
--
replace_result
$MYSQL_DUMP_DIR
MYSQL_DUMP_DIR
--
error
2
--
exec
$MYSQL_DUMP
--
compact
--
skip
-
comments
mysqldump_test_d
2
>&
1
--
replace_result
$MYSQL_DUMP_DIR
MYSQL_DUMP_DIR
--
error
2
--
exec
$MYSQL_DUMP
--
compact
--
skip
-
comments
"mysqld\ump_test_db"
2
>&
1
drop
table
t1
,
t2
,
t3
;
drop
database
mysqldump_test_db
;
#
# Bug #10213 mysqldump crashes when dumping VIEWs(on MacOS X)
...
...
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