summaryrefslogtreecommitdiff
path: root/sql/item_timefunc.h
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.com>2020-06-01 10:35:01 +0400
committerAlexander Barkov <bar@mariadb.com>2020-06-01 10:35:01 +0400
commit35cbbd4d70e300d25077ece1971c9f7266f347e9 (patch)
tree56da16d18bebf1c64b43cd87f33d79c747ee2df4 /sql/item_timefunc.h
parentf67522ede66bfccb90d80f4f3e41209997862fef (diff)
downloadmariadb-git-35cbbd4d70e300d25077ece1971c9f7266f347e9.tar.gz
MDEV-20809 EXTRACT from INET6 value does not produce any warnings
Disallowing EXTRACT(xxx FROM inet6arg) as fix time. Adding a new method Type_handler::can_return_extract_source().
Diffstat (limited to 'sql/item_timefunc.h')
-rw-r--r--sql/item_timefunc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/item_timefunc.h b/sql/item_timefunc.h
index 5d5f3bd4681..c9a493f8efc 100644
--- a/sql/item_timefunc.h
+++ b/sql/item_timefunc.h
@@ -1002,6 +1002,7 @@ class Item_extract :public Item_int_func,
longlong val_int();
enum Functype functype() const { return EXTRACT_FUNC; }
const char *func_name() const { return "extract"; }
+ bool check_arguments() const;
bool fix_length_and_dec();
bool eq(const Item *item, bool binary_cmp) const;
void print(String *str, enum_query_type query_type);