From 8df04fb894bd06706ee6292d4dd991aacfc1989a Mon Sep 17 00:00:00 2001 From: Aleksey Midenkov Date: Mon, 30 Jul 2018 19:50:42 +0300 Subject: 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 --- sql/item_vers.cc | 3 --- 1 file changed, 3 deletions(-) (limited to 'sql/item_vers.cc') 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); } -- cgit v1.2.1