Commit ed32dbba authored by bell@sanja.is.com.ua's avatar bell@sanja.is.com.ua

fix lock_multi

parent 27e61d15
...@@ -1506,7 +1506,8 @@ memory to write 'DELETE FROM `%s`.`%s`' to the binary log",db,name); ...@@ -1506,7 +1506,8 @@ memory to write 'DELETE FROM `%s`.`%s`' to the binary log",db,name);
DBUG_RETURN(0); DBUG_RETURN(0);
err: err:
/* Hide "Table doesn't exist" errors if table belong to view */ /* Hide "Table doesn't exist" errors if table belong to view */
if (thd->net.last_errno == ER_NO_SUCH_TABLE && table_desc->belong_to_view) if (thd->net.last_errno == ER_NO_SUCH_TABLE &&
table_desc && table_desc->belong_to_view)
{ {
TABLE_LIST * view= table_desc->belong_to_view; TABLE_LIST * view= table_desc->belong_to_view;
thd->clear_error(); thd->clear_error();
......
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