1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

added CHECK option test for INSERT ... ON DUPLICATE KEY UPDATE (WL#1983)

This commit is contained in:
bell@sanja.is.com.ua
2004-09-06 23:55:36 +03:00
parent ee03178f01
commit f7e92479e9
5 changed files with 69 additions and 10 deletions

View File

@ -2769,7 +2769,8 @@ unsent_create_error:
if ((res= mysql_insert_select_prepare(thd)))
break;
if ((result= new select_insert(first_table, first_table->table,
&lex->field_list, lex->duplicates)))
&lex->field_list, lex->duplicates,
lex->duplicates == DUP_IGNORE)))
/* Skip first table, which is the table we are inserting in */
lex->select_lex.table_list.first= (byte*) first_table->next_local;
/*