mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Correction for the patch to fix mdev-16473.
This commit is contained in:
@ -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;
|
||||
|
@ -3960,8 +3960,8 @@ public:
|
||||
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
|
||||
{
|
||||
|
Reference in New Issue
Block a user