summaryrefslogtreecommitdiff
path: root/sql/sql_show.cc
diff options
context:
space:
mode:
authoranozdrin@mysql.com <>2006-03-09 03:10:39 +0300
committeranozdrin@mysql.com <>2006-03-09 03:10:39 +0300
commitbe527f3070c67455bc7d7a5e9361ee2b1f09461a (patch)
treef2751b5893235133e3a67a0cadb89e27a0a475c8 /sql/sql_show.cc
parent0903941d053e1bfba7e6265c4150e3a4fa6995cb (diff)
downloadmariadb-git-be527f3070c67455bc7d7a5e9361ee2b1f09461a.tar.gz
Fix for multiple test failures on some platforms.
Diffstat (limited to 'sql/sql_show.cc')
-rw-r--r--sql/sql_show.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/sql_show.cc b/sql/sql_show.cc
index 8920efa87ab..5c9d13cac3e 100644
--- a/sql/sql_show.cc
+++ b/sql/sql_show.cc
@@ -713,7 +713,8 @@ append_identifier(THD *thd, String *packet, const char *name, uint length)
int get_quote_char_for_identifier(THD *thd, const char *name, uint length)
{
- if (!is_keyword(name,length) &&
+ if (!length ||
+ !is_keyword(name,length) &&
!require_quotes(name, length) &&
!(thd->options & OPTION_QUOTE_SHOW_CREATE))
return EOF;