summaryrefslogtreecommitdiff
path: root/sql/item_func.h
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.com>2019-07-10 11:55:16 +0400
committerAlexander Barkov <bar@mariadb.com>2019-07-10 11:55:16 +0400
commit265a7d1613d29e2bdd4c91a5a75971b331519dbe (patch)
treeb053ea8bc389ff1bd7a6a8d9a750cdc71c0d8f43 /sql/item_func.h
parente37d7a37151f1aa53e102d24af5d234c2ccfa392 (diff)
downloadmariadb-git-265a7d1613d29e2bdd4c91a5a75971b331519dbe.tar.gz
MDEV-20009 Add CAST(expr AS pluggable_type)
Diffstat (limited to 'sql/item_func.h')
-rw-r--r--sql/item_func.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/sql/item_func.h b/sql/item_func.h
index f47cd080f57..d1be46e41a7 100644
--- a/sql/item_func.h
+++ b/sql/item_func.h
@@ -3103,12 +3103,15 @@ public:
set(handler, 0, 0);
}
const Type_handler *type_handler() const { return m_type_handler; }
- Item *create_typecast_item(THD *thd, Item *item, CHARSET_INFO *cs= NULL)
+ Item *create_typecast_item(THD *thd, Item *item,
+ CHARSET_INFO *cs= NULL) const
{
return m_type_handler->
create_typecast_item(thd, item,
Type_cast_attributes(length(), dec(), cs));
}
+ Item *create_typecast_item_or_error(THD *thd, Item *item,
+ CHARSET_INFO *cs= NULL) const;
};