summaryrefslogtreecommitdiff
path: root/sql/item_create.h
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.org>2017-05-27 11:12:14 +0400
committerAlexander Barkov <bar@mariadb.org>2017-05-27 11:12:14 +0400
commit9d834c76af9864505ca5b6c68423897381748ad2 (patch)
tree5be9f2ad37497ffaf82af9e3c22c08b2f6845a33 /sql/item_create.h
parentf462bfc1f786cccf132b09cb9553d75f2191f629 (diff)
downloadmariadb-git-9d834c76af9864505ca5b6c68423897381748ad2.tar.gz
MDEV-12932 Remove enum Cast_target and use Type_handler to handle CAST
Diffstat (limited to 'sql/item_create.h')
-rw-r--r--sql/item_create.h16
1 files changed, 1 insertions, 15 deletions
diff --git a/sql/item_create.h b/sql/item_create.h
index a2d985dd3e8..128a19a1c15 100644
--- a/sql/item_create.h
+++ b/sql/item_create.h
@@ -157,20 +157,6 @@ protected:
#endif
-/**
- Builder for cast expressions.
- @param thd The current thread
- @param a The item to cast
- @param cast_type the type casted into
- @param len TODO
- @param dec TODO
- @param cs The character set
-*/
-Item *
-create_func_cast(THD *thd, Item *a, Cast_target cast_type,
- const char *len, const char *dec,
- CHARSET_INFO *cs);
-
Item *create_temporal_literal(THD *thd,
const char *str, uint length,
CHARSET_INFO *cs,
@@ -194,7 +180,7 @@ Item *create_func_dyncol_add(THD *thd, Item *str,
List<DYNCALL_CREATE_DEF> &list);
Item *create_func_dyncol_delete(THD *thd, Item *str, List<Item> &nums);
Item *create_func_dyncol_get(THD *thd, Item *num, Item *str,
- Cast_target cast_type,
+ const Type_handler *handler,
const char *c_len, const char *c_dec,
CHARSET_INFO *cs);
Item *create_func_dyncol_json(THD *thd, Item *str);