diff options
author | sachin <sachin.setiya@mariadb.com> | 2019-03-20 15:04:24 +0530 |
---|---|---|
committer | sachin <sachin.setiya@mariadb.com> | 2019-03-22 12:13:24 +0530 |
commit | 778c525ff8f47aa56027d185a3f271d34cdb66ef (patch) | |
tree | b483ff1826f7c0808205c620474f989a6d1e76f8 /sql/mysqld.cc | |
parent | f00e25b4c4dee75d0bc3d8f3027ff1e9c8c5368b (diff) | |
download | mariadb-git-778c525ff8f47aa56027d185a3f271d34cdb66ef.tar.gz |
MDEV-17119 replicate_rewrite_db does not work for single chardatabase name
Fixed issue in logic.
Diffstat (limited to 'sql/mysqld.cc')
-rw-r--r-- | sql/mysqld.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/mysqld.cc b/sql/mysqld.cc index aa749e5aaef..528c5d8ecfe 100644 --- a/sql/mysqld.cc +++ b/sql/mysqld.cc @@ -7596,7 +7596,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; |