mariadb/mysql-test/suite
Nikita Malyavin 68c1fbfc17 MDEV-25370 Update for portion changes autoincrement key in bi-temp table
According to the standard, the autoincrement column (i.e. *identity
column*) should be advanced each insert implicitly made by
UPDATE/DELETE ... FOR PORTION.

This is very unconvenient use in several notable cases. Concider a
WITHOUT OVERLAPS key with an autoinc column:
id int auto_increment, unique(id, p without overlaps)

An update or delete with FOR PORTION creates a sense that id will remain
unchanged in such case.

The standard's IDENTITY reminds MariaDB's AUTO_INCREMENT, however
the generation rules differ in many ways. For example, there's also a
notion autoincrement index, which is bound to the autoincrement field.

We will define our own generation rule for the PORTION OF operations
involving AUTO_INCREMENT:
* If an autoincrement index contains WITHOUT OVERLAPS specification, then
a new value should not be generated, otherwise it should.

Apart from WITHOUT OVERLAPS there is also another notable case, referred
by the reporter - a unique key that has an autoincrement column and a field
from the period specification:
  id int auto_increment, unique(id, s), period for p(s, e)

for this case, no exception is made, and the autoincrementing rules will be
proceeded accordung to the standard (i.e. the value will be advanced on
implicit inserts).
2024-01-31 16:03:38 +01:00
..
archive Fix compression tests for s390x 2023-09-05 12:34:39 +03:00
binlog MDEV-27666 User variable not parsed as geometry variable in geometry function 2024-01-16 18:53:23 +04:00
binlog_encryption Merge 10.4 into 10.5 2023-12-19 18:30:58 +02:00
client
compat Fix test failures on s390x in test following main.column_compression_rpl 2024-01-12 17:22:08 +01:00
csv
encryption Merge 10.4 into 10.5 2023-12-18 08:59:07 +02:00
engines Merge branch '10.4' into 10.5 2023-12-02 01:02:50 +01:00
federated MDEV-32984 Update federated table and column privileges 2024-01-10 10:16:20 +01:00
funcs_1 Merge branch '10.4' into 10.5 2023-12-02 01:02:50 +01:00
funcs_2 MDEV-30233 DROP DATABASE test fails: Directory not empty 2022-12-15 11:14:23 +02:00
galera Merge 10.4 into 10.5 2024-01-03 12:07:51 +02:00
galera_3nodes Merge 10.4 into 10.5 2024-01-03 12:07:51 +02:00
galera_3nodes_sr Merge 10.4 into 10.5 2024-01-03 12:07:51 +02:00
galera_sr Merge 10.4 into 10.5 2024-01-03 12:07:51 +02:00
gcol Merge branch '10.4' into 10.5 2023-12-02 01:02:50 +01:00
handler Merge branch '10.4' into 10.5 2023-07-27 15:43:21 +02:00
heap Merge remote-tracking branch 'origin/10.4' into 10.5 2022-09-14 16:24:51 +04:00
innodb MDEV-33341 innodb.undo_space_dblwr test case fails with Unknown Storage Engine InnoDB 2024-01-31 15:55:09 +05:30
innodb_fts Merge branch '10.4' into 10.5 2023-12-02 01:02:50 +01:00
innodb_gis Merge branch '10.4' into 10.5 2023-12-02 01:02:50 +01:00
innodb_i_s Merge remote-tracking branch '10.4' into 10.5 2023-03-31 21:32:41 +02:00
innodb_zip Merge branch '10.4' into 10.5 2023-12-02 01:02:50 +01:00
jp MDEV-29446 Change SHOW CREATE TABLE to display default collation 2022-09-12 22:10:39 +04:00
json
large_tests
maria Merge branch '10.4' into 10.5 2023-11-08 12:59:00 +01:00
mariabackup MDEV-33006 Missing required privilege CONNECTION ADMIN 2023-12-14 09:08:43 +11:00
mtr/t
mtr2
multi_source Merge branch '10.4' into 10.5 2023-12-02 01:02:50 +01:00
optimizer_unfixed_bugs MDEV-29710: Disable some slow tests on Valgrind 2022-10-06 08:42:26 +03:00
parts Merge branch '10.4' into 10.5 2023-07-27 15:43:21 +02:00
perfschema Merge branch '10.4' into 10.5 2023-12-02 01:02:50 +01:00
perfschema_stress
period MDEV-25370 Update for portion changes autoincrement key in bi-temp table 2024-01-31 16:03:38 +01:00
plugins Merge branch '10.4' into 10.5 2023-12-02 01:02:50 +01:00
roles MDEV-26875: Wrong user in SET DEFAULT ROLE error 2023-10-30 18:39:56 +01:00
rpl MDEV-27666 User variable not parsed as geometry variable in geometry function 2024-01-16 18:53:23 +04:00
s3 A cleanup for MDEV-29446 Change SHOW CREATE TABLE to display default collation 2022-09-15 12:20:50 +04:00
sql_sequence Merge branch '10.4' into 10.5 2024-01-10 18:01:46 +11:00
storage_engine
stress MDEV-29710: Skip some more tests on Valgrind 2022-10-05 20:37:54 +03:00
sys_vars MDEV-33341 innodb.undo_space_dblwr test case fails with Unknown Storage Engine InnoDB 2024-01-31 15:55:09 +05:30
unit
vcol Merge branch '10.4' into 10.5 2023-12-02 01:02:50 +01:00
versioning Merge branch '10.4' into 10.5 2023-12-02 01:02:50 +01:00
wsrep Merge 10.4 into 10.5 2023-12-21 11:30:32 +02:00