check_db_name know takes LEX_STRING*

parent b5603af7
...@@ -4435,7 +4435,7 @@ end_with_restore_list: ...@@ -4435,7 +4435,7 @@ end_with_restore_list:
Verify that the database name is allowed, optionally Verify that the database name is allowed, optionally
lowercase it. lowercase it.
*/ */
if (check_db_name(lex->sphead->m_db.str)) if (check_db_name(&lex->sphead->m_db))
{ {
my_error(ER_WRONG_DB_NAME, MYF(0), lex->sphead->m_db.str); my_error(ER_WRONG_DB_NAME, MYF(0), lex->sphead->m_db.str);
delete lex->sphead; delete lex->sphead;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment