Skip to content

Commit

Permalink
Correction for the patch to fix mdev-16473.
Browse files Browse the repository at this point in the history
  • Loading branch information
igorbabaev committed Jun 26, 2018
1 parent 31c950c commit 6d377a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sql/sql_base.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3331,7 +3331,7 @@ open_and_process_table(THD *thd, LEX *lex, TABLE_LIST *tables,
Not a placeholder: must be a base/temporary table or a view. Let us open it.
*/

if (tables->db == no_db)
if (tables->db[0] == no_db[0])
{
my_message(ER_NO_DB_ERROR, ER(ER_NO_DB_ERROR), MYF(0));
error= TRUE;
Expand Down
2 changes: 1 addition & 1 deletion sql/sql_class.h
Original file line number Diff line number Diff line change
Expand Up @@ -3960,8 +3960,8 @@ class THD :public Statement,
return TRUE;
}
/* This will allow to throw an error later for non-CTE references */
*p_db= (char *) no_db;
*p_db_length= strlen(no_db);
*p_db= strmake(no_db, *p_db_length);
}
else
{
Expand Down

0 comments on commit 6d377a5

Please sign in to comment.