diff options
author | monty@mashka.mysql.fi <> | 2002-10-29 22:56:30 +0200 |
---|---|---|
committer | monty@mashka.mysql.fi <> | 2002-10-29 22:56:30 +0200 |
commit | 5343d4c96993e31a3377be07e9c97aee27784461 (patch) | |
tree | b93d36288a2bf44b78ebae18e00a9062e08a24bd /sql/sql_db.cc | |
parent | 1f10e446778c4f54778da2d850b9cdc34db63d16 (diff) | |
download | mariadb-git-5343d4c96993e31a3377be07e9c97aee27784461.tar.gz |
Added --skip-safemalloc to mysqltest
Added bug fix from 3.23 for AIX 4.3.3 and gcc 3.x
Small change in EXCHANGE output
Propagate open-files-limit from mysqld_safe -> mysqld
Fixed speed bug in GROUP BY
Added quotes around database name in CREATE DATABASE db_name (for binary log)
Diffstat (limited to 'sql/sql_db.cc')
-rw-r--r-- | sql/sql_db.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sql/sql_db.cc b/sql/sql_db.cc index 287df717aec..be193ee0b55 100644 --- a/sql/sql_db.cc +++ b/sql/sql_db.cc @@ -77,9 +77,10 @@ int mysql_create_db(THD *thd, char *db, uint create_options, bool silent) { if (!thd->query) { + /* The client used the old obsolete mysql_create_db() call */ thd->query = path; - thd->query_length = (uint) (strxmov(path,"create database ", db, NullS)- - path); + thd->query_length = (uint) (strxmov(path,"create database `", db, "`", + NullS) - path); } { mysql_update_log.write(thd,thd->query, thd->query_length); |