summaryrefslogtreecommitdiff
path: root/sql/sql_insert.h
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2019-10-11 14:39:05 +0200
committerSergei Golubchik <serg@mariadb.org>2019-10-14 10:29:31 +0200
commitb1c2c4ee1b246144033c95d849d59ed0a1192829 (patch)
treeac3ab866b111a5369372b1b11de8525a79cf3b30 /sql/sql_insert.h
parent904dc93439c25568c7318d2b98b8a583faae5be8 (diff)
downloadmariadb-git-b1c2c4ee1b246144033c95d849d59ed0a1192829.tar.gz
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
Diffstat (limited to 'sql/sql_insert.h')
-rw-r--r--sql/sql_insert.h3
1 files changed, 2 insertions, 1 deletions
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