summaryrefslogtreecommitdiff
path: root/sql/table.cc
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2018-02-22 01:24:02 +0100
committerSergei Golubchik <serg@mariadb.org>2018-02-24 00:50:58 +0100
commitf3088112cbe928f0ad57bb56146bcf1e58c27108 (patch)
treeee8405ebc7223e8c4ad21366e1278fa8651be595 /sql/table.cc
parent33366b10981567cb147375a28522f5e29d23aa5d (diff)
downloadmariadb-git-f3088112cbe928f0ad57bb56146bcf1e58c27108.tar.gz
MDEV-14645: AS OF TIMESTAMP is misused as TRX_ID
Remove 1668efb722d that introduced a special magic behavior for UNIX_TIMESTAMP() in the AS OF context
Diffstat (limited to 'sql/table.cc')
-rw-r--r--sql/table.cc22
1 files changed, 0 insertions, 22 deletions
diff --git a/sql/table.cc b/sql/table.cc
index 4bc8cce7e31..7d3d7412ba5 100644
--- a/sql/table.cc
+++ b/sql/table.cc
@@ -8910,28 +8910,6 @@ void Vers_history_point::fix_item()
item->decimals= 6;
}
-void Vers_history_point::add_typecast(THD *thd, enum vers_sys_type_t defunit)
-{
- if (item)
- {
- if (!unit)
- unit= defunit;
- switch (unit)
- {
- case VERS_TIMESTAMP:
- item= new (thd->mem_root) Item_datetime_from_unixtime_typecast(
- thd, item, MAX_DATETIME_PRECISION);
- break;
- case VERS_TRX_ID:
- item= new (thd->mem_root) Item_longlong_typecast(thd, item);
- break;
- default:
- DBUG_ASSERT(0);
- break;
- }
- }
-}
-
void Vers_history_point::print(String *str, enum_query_type query_type,
const char *prefix, size_t plen)
{