mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
A feature of doing automatick result buffering when INSERT is
done from the select containing a table to be inserted to.
This commit is contained in:
@@ -2198,8 +2198,7 @@ mysql_execute_command(THD *thd)
|
||||
|
||||
if (find_real_table_in_list(tables->next, tables->db, tables->real_name))
|
||||
{
|
||||
net_printf(thd,ER_UPDATE_TABLE_USED,tables->real_name);
|
||||
return -1;
|
||||
lex->select_lex.options |= OPTION_BUFFER_RESULT;
|
||||
}
|
||||
|
||||
/* Skip first table, which is the table we are inserting in */
|
||||
|
||||
Reference in New Issue
Block a user