summaryrefslogtreecommitdiff
path: root/mysql-test/suite/versioning/common_finish.inc
Commit message (Collapse)AuthorAgeFilesLines
* MDEV-23644 Assertion on evaluating foreign referential action for ↵Aleksey Midenkov2020-12-221-0/+2
| | | | | | | | | | | | | | | | | | | | | self-reference in system versioned table First part of the fix (row0mysql.cc) addresses external columns when adding history row on referential action. The full data must be retrieved before the row is inserted. Second part of the fix (the rest) avoids duplicate primary key error between the history row generated on referential action and the history row generated by SQL command. Both command and referential action can happen on same table since foreign key can be self-reference (parent and child tables are same). Moreover, the self-reference can refer multiple rows when the key is non-unique. In such case history is generated by referential action occured on first row but processed all rows by a matched key. The second round is when the next row is processed by a command but history already exists. In such case we check TRX_ID of existing history row and if it is the same we assume the above situation and skip adding one more history row or failing the command.
* versioning test suite fixesAleksey Midenkov2019-10-101-3/+0
| | | | | | | | | | | | | | | Preparation for MDEV-16210: replace.test: key_type combinations: PK and UNIQUE. foreign.test: Preparation for key_type combinations. Other fixes: * Merged versioning.update2 into versioning.update; * Removed test2 database and done individual drop instead.
* Merge branch '10.2' into 10.3Monty2019-09-031-4/+9
|
* MDEV-15893 Rename VTQ to TRTEugene Kosov2018-05-121-2/+2
|
* dead code in versioning/common.incSergei Golubchik2018-04-101-3/+0
|
* IB: CASCADE operation for DELETEAleksey Midenkov2018-03-191-0/+2
| | | | | | | | * Removed "Not supported for TIMESTAMP-based" error * Fixed code duplication with node->vers_set_fields() * Recovered foreign.test [closes tempesta-tech#473]
* simplify versioning testsSergei Golubchik2018-02-241-3/+0
|
* Fixing versioning.insert and versioning.replace test failes.Alexander Barkov2018-01-291-1/+0
| | | | | | | | Tests started to fail after a merge of MDEV-15107 (from bb-10.2-ext to 10.3), because MDEV-15107 additionally fixed this problem: MDEV-15112 Inconsistent evaluation of spvariable=0 in strict mode Modifying tests not to reply on the pre-MDEV-15112 behavior.
* Timestamp-based versioning for InnoDB [closes #209]Aleksey Midenkov2017-12-181-1/+1
| | | | | | | | | | | | | | | | | | | * Removed integer_fields check * Reworked Vers_parse_info::check_sys_fields() * Misc renames * versioned as vers_sys_type_t * Removed versioned_by_sql(), versioned_by_engine() versioned() works as before; versioned(VERS_TIMESTAMP) is versioned_by_sql(); versioned(VERS_TRX_ID) is versioned_by_engine(). * create_tmp_table() fix * Foreign constraints for timestamp-based * Range auto-specifier fix * SQL: 1-row partition rotation fix [fixes #260] * Fix 'drop system versioning, algorithm=inplace'
* MDEV-14650 Assertion 0 failed in TABLE::vers_update_fields [fixes #402]Aleksey Midenkov2017-12-141-0/+1
| | | | SQL: fixed selecion of handlerton by respecting partitioning
* SQL,IB: REPLACE semantics [#365 bug 8]Aleksey Midenkov2017-12-041-0/+1
|
* Tests: removed common.inc from resultsAleksey Midenkov2017-12-041-0/+2
|
* Tests: moved concat_execN() to common.incAleksey Midenkov2017-09-251-0/+2
|
* Tests: split versioning.select into combinationsAleksey Midenkov2017-05-051-0/+5