summaryrefslogtreecommitdiff
path: root/sql/field.cc
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.com>2018-06-06 14:09:06 +0400
committerAlexander Barkov <bar@mariadb.com>2018-06-06 14:09:06 +0400
commitc20cd68e60465f43266fe2bc2b2190e7c1cc4983 (patch)
tree16beb4138d72ba2fac7c33fab3cf94b3591fc3cf /sql/field.cc
parent395212446acec1191d570d15eb03219c2cb11791 (diff)
downloadmariadb-git-c20cd68e60465f43266fe2bc2b2190e7c1cc4983.tar.gz
MDEV-14630 Replace {STRING|INT|REAL|DECIMAL|DATE}_ITEM to CONST_ITEM
Diffstat (limited to 'sql/field.cc')
-rw-r--r--sql/field.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/field.cc b/sql/field.cc
index 735c46be582..dc854826ed6 100644
--- a/sql/field.cc
+++ b/sql/field.cc
@@ -10630,7 +10630,7 @@ Field *Column_definition_attributes::make_field(TABLE_SHARE *share,
bool Field_vers_trx_id::test_if_equality_guarantees_uniqueness(const Item* item) const
{
- return item->type() == Item::DATE_ITEM;
+ return item->is_of_type(Item::CONST_ITEM, TIME_RESULT);
}