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
db499fbd
Commit
db499fbd
authored
Nov 02, 2007
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge gkodinov@bk-internal.mysql.com:/home/bk/mysql-5.1-opt
into magare.gmz:/home/kgeorge/mysql/autopush/B31794-5.1-opt
parents
4cb4a53e
2c6a5fd2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
1 deletion
+34
-1
client/mysqldump.c
client/mysqldump.c
+3
-1
mysql-test/r/mysqldump.result
mysql-test/r/mysqldump.result
+19
-0
mysql-test/t/mysqldump.test
mysql-test/t/mysqldump.test
+12
-0
No files found.
client/mysqldump.c
View file @
db499fbd
...
...
@@ -1040,8 +1040,10 @@ static int fetch_db_collation(const char *db_name,
char
query
[
QUERY_LENGTH
];
MYSQL_RES
*
db_cl_res
;
MYSQL_ROW
db_cl_row
;
char
quoted_database_buf
[
NAME_LEN
*
2
+
3
];
char
*
qdatabase
=
quote_name
(
db_name
,
quoted_database_buf
,
1
);
my_snprintf
(
query
,
sizeof
(
query
),
"use %s"
,
db_nam
e
);
my_snprintf
(
query
,
sizeof
(
query
),
"use %s"
,
qdatabas
e
);
if
(
mysql_query_with_error_report
(
mysql
,
NULL
,
query
))
return
1
;
...
...
mysql-test/r/mysqldump.result
View file @
db499fbd
...
...
@@ -4212,5 +4212,24 @@ TRUNCATE mysql.event;
SHOW EVENTS;
Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
#
# Bug#31113 mysqldump 5.1 can't handle a dash ("-") in database names
#
create database `test-database`;
use `test-database`;
create table test (a int);
DROP TABLE IF EXISTS `test`;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `test` (
`a` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;
LOCK TABLES `test` WRITE;
/*!40000 ALTER TABLE `test` DISABLE KEYS */;
/*!40000 ALTER TABLE `test` ENABLE KEYS */;
UNLOCK TABLES;
drop database `test-database`;
use test;
#
# End of 5.1 tests
#
mysql-test/t/mysqldump.test
View file @
db499fbd
...
...
@@ -1788,6 +1788,18 @@ TRUNCATE mysql.event;
--
exec
$MYSQL
<
$MYSQLTEST_VARDIR
/
tmp
/
bug29938
.
sql
SHOW
EVENTS
;
--
echo
#
--
echo
# Bug#31113 mysqldump 5.1 can't handle a dash ("-") in database names
--
echo
#
create
database
`test-database`
;
use
`test-database`
;
create
table
test
(
a
int
);
--
exec
$MYSQL_DUMP
--
compact
--
opt
--
quote
-
names
test
-
database
drop
database
`test-database`
;
use
test
;
--
echo
#
--
echo
# End of 5.1 tests
--
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