1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

fixed detection of updating table on which we select (BUG#6032)

This commit is contained in:
bell@sanja.is.com.ua
2004-10-25 17:32:28 +03:00
parent 6a46a05a93
commit 3d389a038e
10 changed files with 85 additions and 30 deletions

View File

@ -641,7 +641,7 @@ int mysql_prepare_insert(THD *thd, TABLE_LIST *table_list, TABLE *table,
setup_fields(thd, 0, table_list, update_values, 0, 0, 0))))
DBUG_RETURN(-1);
if (unique_table(table_list, table_list->next_independent()))
if (unique_table(table_list, table_list->next_global))
{
my_error(ER_UPDATE_TABLE_USED, MYF(0), table_list->real_name);
DBUG_RETURN(-1);