summaryrefslogtreecommitdiff
path: root/sql/mysqld.cc
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2019-03-26 14:13:46 +0200
committerMarko Mäkelä <marko.makela@mariadb.com>2019-03-26 14:13:46 +0200
commit1933cf98e842f97e11f69afc631638618ec16068 (patch)
tree446b8ff1ac09234b99d71ff06b75961c43247083 /sql/mysqld.cc
parent137812c88a418479c7d637f4075712d9f6c6c82f (diff)
parente8907112790475772b3e5135b58ef95b3fd8ea68 (diff)
downloadmariadb-git-1933cf98e842f97e11f69afc631638618ec16068.tar.gz
Merge 5.5 into 10.0bb-10.0-merge
Diffstat (limited to 'sql/mysqld.cc')
-rw-r--r--sql/mysqld.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/mysqld.cc b/sql/mysqld.cc
index 21bfc3cead2..491eb3dbda6 100644
--- a/sql/mysqld.cc
+++ b/sql/mysqld.cc
@@ -8479,7 +8479,8 @@ mysqld_get_one_option(int optid,
val= p--;
while (my_isspace(mysqld_charset, *p) && p > argument)
*p-- = 0;
- if (p == argument)
+ /* Db name can be one char also */
+ if (p == argument && my_isspace(mysqld_charset, *p))
{
sql_print_error("Bad syntax in replicate-rewrite-db - empty FROM db!\n");
return 1;