diff options
author | Sergei Golubchik <serg@mariadb.org> | 2019-10-11 14:39:05 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2019-10-13 20:03:08 +0200 |
commit | 3593d4f935e1adc7b762bba8a7066309bb6ce016 (patch) | |
tree | c14bcae00f221a69c13bdbbab733b0d1ca7e5d70 /sql/sql_insert.h | |
parent | a9331dd08c31af161c87cedc27a0b46445efb8bf (diff) | |
download | mariadb-git-bb-10.5-10014.tar.gz |
MDEV-10014 Add RETURNING to INSERTbb-10.5-10014
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.h | 3 |
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 |