1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +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

@@ -2810,7 +2810,7 @@ unsent_create_error:
Is table which we are changing used somewhere in other parts of
query
*/
if (unique_table(first_table, all_tables->next_independent()))
if (unique_table(first_table, all_tables->next_global))
{
/* Using same table for INSERT and SELECT */
select_lex->options |= OPTION_BUFFER_RESULT;