summaryrefslogtreecommitdiff
path: root/sql/item_vers.cc
diff options
context:
space:
mode:
authorAleksey Midenkov <midenok@gmail.com>2018-07-30 19:50:42 +0300
committerSergei Golubchik <serg@mariadb.org>2019-03-29 12:51:19 +0100
commit8df04fb894bd06706ee6292d4dd991aacfc1989a (patch)
tree2e42848d4515f9e0fec94705e4f05386d17ee8f7 /sql/item_vers.cc
parent5c0bb0766d46840bf96555ecd5cb2ed17028c847 (diff)
downloadmariadb-git-8df04fb894bd06706ee6292d4dd991aacfc1989a.tar.gz
MDEV-15412 For any non-existing transaction ID, AS OF provides the current table contents without a warning
Fail with error on non-existing TRX_ID. Closes #832
Diffstat (limited to 'sql/item_vers.cc')
-rw-r--r--sql/item_vers.cc3
1 files changed, 0 insertions, 3 deletions
diff --git a/sql/item_vers.cc b/sql/item_vers.cc
index d7361f687f9..cfedc6b0f81 100644
--- a/sql/item_vers.cc
+++ b/sql/item_vers.cc
@@ -62,10 +62,7 @@ Item_func_trt_ts::get_date(MYSQL_TIME *res, ulonglong fuzzy_date)
null_value= !trt.query(trx_id);
if (null_value)
- {
- my_error(ER_VERS_NO_TRX_ID, MYF(0), (longlong) trx_id);
return true;
- }
return trt[trt_field]->get_date(res, fuzzy_date);
}