1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

test of updating and fetching from the same table check (BUG##5157)

This commit is contained in:
bell@sanja.is.com.ua
2004-09-08 10:18:04 +03:00
parent 5d3f95b173
commit 425857f5b2
12 changed files with 171 additions and 32 deletions

View File

@ -599,8 +599,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 (find_table_in_global_list(table_list->next_global,
table_list->db, table_list->real_name))
if (unique_table(table_list, table_list->next_independent()))
{
my_error(ER_UPDATE_TABLE_USED, MYF(0), table_list->real_name);
DBUG_RETURN(-1);