1
0
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:
unknown
2003-01-28 18:55:52 +02:00
parent d2b6620621
commit 7b137f15bd
5 changed files with 47 additions and 4 deletions

View File

@@ -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 */