mirror of
https://github.com/MariaDB/server.git
synced 2026-04-29 19:55:32 +02:00
Fix for multiple test failures on some platforms.
sql/sql_lex.cc: Added a debug assertion that the passed string is not empty. sql/sql_show.cc: Do not quote empty string.
This commit is contained in:
parent
bfa21dd152
commit
bc6b7859ae
2 changed files with 4 additions and 2 deletions
|
|
@ -223,7 +223,7 @@ static int find_keyword(LEX *lex, uint len, bool function)
|
|||
|
||||
SYNOPSIS
|
||||
is_keyword()
|
||||
name checked name
|
||||
name checked name (must not be empty)
|
||||
len length of checked name
|
||||
|
||||
RETURN VALUES
|
||||
|
|
@ -233,6 +233,7 @@ static int find_keyword(LEX *lex, uint len, bool function)
|
|||
|
||||
bool is_keyword(const char *name, uint len)
|
||||
{
|
||||
DBUG_ASSERT(len != 0);
|
||||
return get_hash_symbol(name,len,0)!=0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue