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
b25b8cbc
Commit
b25b8cbc
authored
Aug 31, 2007
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge gleb.loc:/home/uchum/work/bk/5.0-opt-30126
into gleb.loc:/home/uchum/work/bk/5.0-opt
parents
bd1f34d9
ff149b71
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
1 deletion
+21
-1
client/mysqldump.c
client/mysqldump.c
+1
-1
mysql-test/r/mysqldump-compat.result
mysql-test/r/mysqldump-compat.result
+4
-0
mysql-test/t/mysqldump-compat.opt
mysql-test/t/mysqldump-compat.opt
+1
-0
mysql-test/t/mysqldump-compat.test
mysql-test/t/mysqldump-compat.test
+13
-0
sql/sql_parse.cc
sql/sql_parse.cc
+2
-0
No files found.
client/mysqldump.c
View file @
b25b8cbc
...
...
@@ -2898,7 +2898,7 @@ int init_dumping_tables(char *qdatabase)
/* Old server version, dump generic CREATE DATABASE */
if
(
opt_drop_database
)
fprintf
(
md_result_file
,
"
\n
/*!40000 DROP DATABASE IF EXISTS %s
;*/
\n
"
,
"
\n
/*!40000 DROP DATABASE IF EXISTS %s
*/;
\n
"
,
qdatabase
);
fprintf
(
md_result_file
,
"
\n
CREATE DATABASE /*!32312 IF NOT EXISTS*/ %s;
\n
"
,
...
...
mysql-test/r/mysqldump-compat.result
0 → 100644
View file @
b25b8cbc
CREATE DATABASE mysqldump_30126;
USE mysqldump_30126;
CREATE TABLE t1 (c1 int);
DROP DATABASE mysqldump_30126;
mysql-test/t/mysqldump-compat.opt
0 → 100644
View file @
b25b8cbc
--loose-debug=d,4x_server_emul
mysql-test/t/mysqldump-compat.test
0 → 100644
View file @
b25b8cbc
# Embedded server doesn't support external clients
--
source
include
/
not_embedded
.
inc
#
# Bug #30126: semicolon before closing */ in /*!... CREATE DATABASE ;*/
#
CREATE
DATABASE
mysqldump_30126
;
USE
mysqldump_30126
;
CREATE
TABLE
t1
(
c1
int
);
--
exec
$MYSQL_DUMP
--
add
-
drop
-
database
mysqldump_30126
>
$MYSQLTEST_VARDIR
/
tmp
/
bug30126
.
sql
--
exec
$MYSQL
mysqldump_30126
<
$MYSQLTEST_VARDIR
/
tmp
/
bug30126
.
sql
DROP
DATABASE
mysqldump_30126
;
sql/sql_parse.cc
View file @
b25b8cbc
...
...
@@ -3990,6 +3990,8 @@ end_with_restore_list:
}
case
SQLCOM_SHOW_CREATE_DB
:
{
DBUG_EXECUTE_IF
(
"4x_server_emul"
,
my_error
(
ER_UNKNOWN_ERROR
,
MYF
(
0
));
goto
error
;);
if
(
!
strip_sp
(
lex
->
name
)
||
check_db_name
(
lex
->
name
))
{
my_error
(
ER_WRONG_DB_NAME
,
MYF
(
0
),
lex
->
name
);
...
...
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