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 */
| 1662 | ER_NOT_SUPPORTED_YET if the above condition was met |
| 1663 | */ |
| 1664 | int 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 |
no test coverage detected