diff options
author | Nikita Malyavin <nikitamalyavin@gmail.com> | 2020-03-17 02:59:11 +1000 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2020-03-31 17:42:34 +0200 |
commit | 244ff3e5a09eb1b4b3d4bc75371260550a47f576 (patch) | |
tree | 985147d3183c5d9d399e56cc452055eb23fc0fe2 /sql/sql_load.cc | |
parent | 62e7ad2bbcf89f4a254be0bfbfcbb437f14e6e78 (diff) | |
download | mariadb-git-244ff3e5a09eb1b4b3d4bc75371260550a47f576.tar.gz |
forbid REPLACE/ODKU on tables containing WITHOUT OVERLAPS
Diffstat (limited to 'sql/sql_load.cc')
-rw-r--r-- | sql/sql_load.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/sql_load.cc b/sql/sql_load.cc index b52846c1390..3d1f0bf0958 100644 --- a/sql/sql_load.cc +++ b/sql/sql_load.cc @@ -441,6 +441,9 @@ int mysql_load(THD *thd, const sql_exchange *ex, TABLE_LIST *table_list, is_concurrent= (table_list->lock_type == TL_WRITE_CONCURRENT_INSERT); #endif + if (check_duplic_insert_without_overlaps(thd, table, handle_duplicates) != 0) + DBUG_RETURN(true); + if (!fields_vars.elements) { Field_iterator_table_ref field_iterator; |