diff options
author | Aleksey Midenkov <midenok@gmail.com> | 2018-04-25 17:13:20 +0300 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2018-05-17 15:33:42 +0200 |
commit | 21eccff6250926a133bc8aa70002573c83393af5 (patch) | |
tree | 581ed9201df3f8d9b1107221942878f970890dc4 /sql/item_vers.cc | |
parent | 60319afff73c27cc10d5ad7610430761dfbd5d25 (diff) | |
download | mariadb-git-21eccff6250926a133bc8aa70002573c83393af5.tar.gz |
MDEV-15979 DELETE HISTORY from a table with transaction-precise versioning causes Assertion `table_list->vers_conditions.type == SYSTEM_TIME_BEFORE' failure
* Fix versioning.truncate,trx_id to create transaction-based tables
* Fix SYSTEM_TIME_BEFORE condition for VERS_TRX_ID
Diffstat (limited to 'sql/item_vers.cc')
-rw-r--r-- | sql/item_vers.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/item_vers.cc b/sql/item_vers.cc index 8a83ffddcf4..d7361f687f9 100644 --- a/sql/item_vers.cc +++ b/sql/item_vers.cc @@ -123,7 +123,7 @@ Item_func_trt_id::get_by_commit_ts(MYSQL_TIME &commit_ts, bool backwards) TR_table trt(thd); null_value= !trt.query(commit_ts, backwards); if (null_value) - return 0; + return backwards ? ULONGLONG_MAX : 0; return trt[trt_field]->val_int(); } |