mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
added CHECK option test for INSERT ... ON DUPLICATE KEY UPDATE (WL#1983)
mysql-test/r/view.result: CHECK OPTION with INSERT ... ON DUPLICATE KEY UPDATE mysql-test/t/view.test: CHECK OPTION with INSERT ... ON DUPLICATE KEY UPDATE sql/sql_class.h: new parameters added to save CHECK OPTION constructor moved sql/sql_insert.cc: new parameters added to save CHECK OPTION check of CHECK OPTION added constructor moved sql/sql_parse.cc: new parameters added to save CHECK OPTION
This commit is contained in:
@@ -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;
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user