From 3593d4f935e1adc7b762bba8a7066309bb6ce016 Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Fri, 11 Oct 2019 14:39:05 +0200 Subject: MDEV-10014 Add RETURNING to INSERT post-review fixes: * test for dependent subqueries * test for triggers and routines * disallow INSERT...RETURNING in triggers and stored functions * don't return anything if INSERT IGNORE ignored an error --- sql/sql_insert.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sql/sql_insert.h') diff --git a/sql/sql_insert.h b/sql/sql_insert.h index 5b86f09d13b..977a0eb23c8 100644 --- a/sql/sql_insert.h +++ b/sql/sql_insert.h @@ -38,7 +38,8 @@ void upgrade_lock_type_for_insert(THD *thd, thr_lock_type *lock_type, int check_that_all_fields_are_given_values(THD *thd, TABLE *entry, TABLE_LIST *table_list); int vers_insert_history_row(TABLE *table); -int write_record(THD *thd, TABLE *table, COPY_INFO *info); +int write_record(THD *thd, TABLE *table, COPY_INFO *info, + select_result *returning= NULL); void kill_delayed_threads(void); #ifdef EMBEDDED_LIBRARY -- cgit v1.2.1