MCPcopy Create free account
hub / github.com/MariaDB/server / check_duplic_insert_without_overlaps

Function check_duplic_insert_without_overlaps

sql/sql_insert.cc:1664–1679  ·  view source on GitHub ↗

TODO remove when MDEV-17395 will be closed Checks if REPLACE or ON DUPLICATE UPDATE was executed on table containing WITHOUT OVERLAPS key. @return 0 if no error ER_NOT_SUPPORTED_YET if the above condition was met */

Source from the content-addressed store, hash-verified

1662 ER_NOT_SUPPORTED_YET if the above condition was met
1663 */
1664int check_duplic_insert_without_overlaps(THD *thd, TABLE *table,
1665 enum_duplicates duplic)
1666{
1667 if (duplic == DUP_REPLACE || duplic == DUP_UPDATE)
1668 {
1669 for (uint k = 0; k < table->s->keys; k++)
1670 {
1671 if (table->key_info[k].without_overlaps)
1672 {
1673 my_error(ER_NOT_SUPPORTED_YET, MYF(0), "WITHOUT OVERLAPS");
1674 return ER_NOT_SUPPORTED_YET;
1675 }
1676 }
1677 }
1678 return 0;
1679}
1680
1681/*
1682 Check if table can be updated

Callers 2

mysql_prepare_insertFunction · 0.85
mysql_loadFunction · 0.85

Calls 1

my_errorFunction · 0.85

Tested by

no test coverage detected