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
8018f99c
Commit
8018f99c
authored
Jun 22, 2005
by
msvensson@neptunus.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merging
parents
8e9c7a42
01b025c2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
55 deletions
+13
-55
mysql-test/r/mysqldump.result
mysql-test/r/mysqldump.result
+2
-1
mysql-test/t/mysqldump.test
mysql-test/t/mysqldump.test
+11
-54
No files found.
mysql-test/r/mysqldump.result
View file @
8018f99c
...
@@ -1580,6 +1580,7 @@ mysqldump: Got error: 1049: Unknown database 'mysqldump_test_d' when selecting t
...
@@ -1580,6 +1580,7 @@ mysqldump: Got error: 1049: Unknown database 'mysqldump_test_d' when selecting t
mysqldump: Got error: 1102: Incorrect database name 'mysqld\ump_test_db' when selecting the database
mysqldump: Got error: 1102: Incorrect database name 'mysqld\ump_test_db' when selecting the database
drop table t1, t2, t3;
drop table t1, t2, t3;
drop database mysqldump_test_db;
drop database mysqldump_test_db;
use test;
create table t1 (a int(10));
create table t1 (a int(10));
create table t2 (pk int primary key auto_increment,
create table t2 (pk int primary key auto_increment,
a int(10), b varchar(30), c datetime, d blob, e text);
a int(10), b varchar(30), c datetime, d blob, e text);
...
...
mysql-test/t/mysqldump.test
View file @
8018f99c
...
@@ -2,10 +2,7 @@
...
@@ -2,10 +2,7 @@
--
source
include
/
not_embedded
.
inc
--
source
include
/
not_embedded
.
inc
--
disable_warnings
--
disable_warnings
DROP
TABLE
IF
EXISTS
t1
,
`"t"1`
,
t1aa
,
t2
,
t2aa
;
DROP
TABLE
IF
EXISTS
t1
,
`"t"1`
;
drop
database
if
exists
mysqldump_test_db
;
drop
database
if
exists
db1
;
drop
view
if
exists
v1
,
v2
;
--
enable_warnings
--
enable_warnings
# XML output
# XML output
...
@@ -19,7 +16,7 @@ DROP TABLE t1;
...
@@ -19,7 +16,7 @@ DROP TABLE t1;
# Bug #2005
# Bug #2005
#
#
CREATE
TABLE
t1
(
a
decimal
(
64
,
20
));
CREATE
TABLE
t1
(
a
decimal
(
240
,
20
));
INSERT
INTO
t1
VALUES
(
"1234567890123456789012345678901234567890"
),
INSERT
INTO
t1
VALUES
(
"1234567890123456789012345678901234567890"
),
(
"0987654321098765432109876543210987654321"
);
(
"0987654321098765432109876543210987654321"
);
--
exec
$MYSQL_DUMP
--
compact
test
t1
--
exec
$MYSQL_DUMP
--
compact
test
t1
...
@@ -30,7 +27,7 @@ DROP TABLE t1;
...
@@ -30,7 +27,7 @@ DROP TABLE t1;
#
#
CREATE
TABLE
t1
(
a
double
);
CREATE
TABLE
t1
(
a
double
);
INSERT
INTO
t1
VALUES
(
'-9e999999'
);
INSERT
INTO
t1
VALUES
(
-
9
e999999
);
# The following replaces is here because some systems replaces the above
# The following replaces is here because some systems replaces the above
# double with '-inf' and others with MAX_DOUBLE
# double with '-inf' and others with MAX_DOUBLE
--
replace_result
(
-
1.79769313486232e+308
)
(
RES
)
(
NULL
)
(
RES
)
--
replace_result
(
-
1.79769313486232e+308
)
(
RES
)
(
NULL
)
(
RES
)
...
@@ -134,15 +131,6 @@ insert into t1 values (1),(2),(3);
...
@@ -134,15 +131,6 @@ insert into t1 values (1),(2),(3);
--
exec
rm
$MYSQL_TEST_DIR
/
var
/
tmp
/
t1
.
txt
--
exec
rm
$MYSQL_TEST_DIR
/
var
/
tmp
/
t1
.
txt
drop
table
t1
;
drop
table
t1
;
#
# dump of view
#
create
table
t1
(
a
int
);
create
view
v1
as
select
*
from
t1
;
--
exec
$MYSQL_DUMP
--
skip
-
comments
test
drop
view
v1
;
drop
table
t1
;
#
#
# Bug #6101: create database problem
# Bug #6101: create database problem
#
#
...
@@ -197,24 +185,15 @@ INSERT INTO `t1` VALUES (0x602010000280100005E71A);
...
@@ -197,24 +185,15 @@ INSERT INTO `t1` VALUES (0x602010000280100005E71A);
--
exec
$MYSQL_DUMP
--
skip
-
extended
-
insert
--
hex
-
blob
test
--
skip
-
comments
t1
--
exec
$MYSQL_DUMP
--
skip
-
extended
-
insert
--
hex
-
blob
test
--
skip
-
comments
t1
DROP
TABLE
t1
;
DROP
TABLE
t1
;
#
# Bug #9756
#
CREATE
TABLE
t1
(
a
char
(
10
));
INSERT
INTO
t1
VALUES
(
'\''
);
--
exec
$MYSQL_DUMP
--
skip
-
comments
test
t1
DROP
TABLE
t1
;
#
#
# Test for --insert-ignore
# Test for --insert-ignore
#
#
CREATE
TABLE
t1
(
a
int
);
CREATE
TABLE
t1
(
a
decimal
(
240
,
20
)
);
INSERT
INTO
t1
VALUES
(
1
),(
2
),(
3
);
INSERT
INTO
t1
VALUES
(
"1234567890123456789012345678901234567890"
),
INSERT
INTO
t1
VALUES
(
4
),(
5
),(
6
);
(
"0987654321098765432109876543210987654321"
);
--
exec
$MYSQL_DUMP
--
skip
-
comments
--
insert
-
ignore
test
t1
--
exec
$MYSQL_DUMP
--
insert
-
ignore
--
skip
-
comments
test
t1
--
exec
$MYSQL_DUMP
--
skip
-
comments
--
insert
-
ignore
--
delayed
-
insert
test
t1
--
exec
$MYSQL_DUMP
--
insert
-
ignore
--
skip
-
comments
--
delayed
-
insert
test
t1
DROP
TABLE
t1
;
DROP
TABLE
t1
;
#
#
...
@@ -565,28 +544,6 @@ INSERT INTO t1 VALUES (1),(2),(3);
...
@@ -565,28 +544,6 @@ INSERT INTO t1 VALUES (1),(2),(3);
--
exec
$MYSQL_DUMP
--
add
-
drop
-
database
--
skip
-
comments
--
databases
test
--
exec
$MYSQL_DUMP
--
add
-
drop
-
database
--
skip
-
comments
--
databases
test
DROP
TABLE
t1
;
DROP
TABLE
t1
;
#
# Bug #10213 mysqldump crashes when dumping VIEWs(on MacOS X)
#
create
database
db1
;
use
db1
;
CREATE
TABLE
t2
(
a
varchar
(
30
)
default
NULL
,
KEY
a
(
a
(
5
))
);
INSERT
INTO
t2
VALUES
(
'alfred'
);
INSERT
INTO
t2
VALUES
(
'angie'
);
INSERT
INTO
t2
VALUES
(
'bingo'
);
INSERT
INTO
t2
VALUES
(
'waffle'
);
INSERT
INTO
t2
VALUES
(
'lemon'
);
create
view
v2
as
select
*
from
t2
where
a
like
'a%'
with
check
option
;
--
exec
$MYSQL_DUMP
--
skip
-
comments
db1
drop
table
t2
;
drop
view
v2
;
drop
database
db1
;
#
#
# Bug #9558 mysqldump --no-data db t1 t2 format still dumps data
# Bug #9558 mysqldump --no-data db t1 t2 format still dumps data
#
#
...
@@ -599,8 +556,6 @@ INSERT INTO t1 VALUES (1), (2);
...
@@ -599,8 +556,6 @@ INSERT INTO t1 VALUES (1), (2);
INSERT
INTO
t2
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
--
exec
$MYSQL_DUMP
--
skip
-
comments
--
no
-
data
mysqldump_test_db
t1
t2
--
exec
$MYSQL_DUMP
--
skip
-
comments
--
no
-
data
mysqldump_test_db
t1
t2
--
exec
$MYSQL_DUMP
--
skip
-
comments
--
skip
-
create
--
xml
--
no
-
data
mysqldump_test_db
--
exec
$MYSQL_DUMP
--
skip
-
comments
--
skip
-
create
--
xml
--
no
-
data
mysqldump_test_db
t1
t2
DROP
TABLE
t1
,
t2
;
DROP
TABLE
t1
,
t2
;
DROP
DATABASE
mysqldump_test_db
;
DROP
DATABASE
mysqldump_test_db
;
...
@@ -620,6 +575,7 @@ select '------ Testing with illegal table names ------' as test_sequence ;
...
@@ -620,6 +575,7 @@ select '------ Testing with illegal table names ------' as test_sequence ;
--
enable_query_log
--
enable_query_log
--
error
6
--
error
6
--
exec
$MYSQL_DUMP
--
compact
--
skip
-
comments
mysqldump_test_db
"\d-2-1.sql"
2
>&
1
--
exec
$MYSQL_DUMP
--
compact
--
skip
-
comments
mysqldump_test_db
"\d-2-1.sql"
2
>&
1
--
error
6
--
error
6
--
exec
$MYSQL_DUMP
--
compact
--
skip
-
comments
mysqldump_test_db
"
\t
1"
2
>&
1
--
exec
$MYSQL_DUMP
--
compact
--
skip
-
comments
mysqldump_test_db
"
\t
1"
2
>&
1
...
@@ -664,6 +620,7 @@ select '------ Testing with illegal database names ------' as test_sequence ;
...
@@ -664,6 +620,7 @@ select '------ Testing with illegal database names ------' as test_sequence ;
drop
table
t1
,
t2
,
t3
;
drop
table
t1
,
t2
,
t3
;
drop
database
mysqldump_test_db
;
drop
database
mysqldump_test_db
;
use
test
;
#
#
...
...
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