mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Moving LP BUG#794005 to 5.3 + fixing INSERT of multi-table view.
This commit is contained in:
@ -1274,7 +1274,7 @@ static int mysql_test_update(Prepared_statement *stmt,
|
||||
if (table_list->handle_derived(thd->lex, DT_PREPARE))
|
||||
goto error;
|
||||
|
||||
if (!table_list->updatable)
|
||||
if (!table_list->single_table_updatable())
|
||||
{
|
||||
my_error(ER_NON_UPDATABLE_TABLE, MYF(0), table_list->alias, "UPDATE");
|
||||
goto error;
|
||||
@ -1348,7 +1348,7 @@ static bool mysql_test_delete(Prepared_statement *stmt,
|
||||
if (mysql_handle_derived(thd->lex, DT_PREPARE))
|
||||
goto error;
|
||||
|
||||
if (!table_list->updatable)
|
||||
if (!table_list->single_table_updatable())
|
||||
{
|
||||
my_error(ER_NON_UPDATABLE_TABLE, MYF(0), table_list->alias, "DELETE");
|
||||
goto error;
|
||||
|
Reference in New Issue
Block a user