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
df7771de
Commit
df7771de
authored
Aug 31, 2007
by
gshchepa/uchum@gleb.loc
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
625c44fe
3e49bbd8
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 @
df7771de
...
...
@@ -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 @
df7771de
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 @
df7771de
--loose-debug=d,4x_server_emul
mysql-test/t/mysqldump-compat.test
0 → 100644
View file @
df7771de
# 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 @
df7771de
...
...
@@ -3990,6 +3990,8 @@ mysql_execute_command(THD *thd)
}
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