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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user