1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

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().
This commit is contained in:
Alexander Barkov
2020-06-01 10:35:01 +04:00
parent f67522ede6
commit 35cbbd4d70
10 changed files with 90 additions and 0 deletions

View File

@ -3616,6 +3616,7 @@ public:
virtual bool can_return_text() const { return true; }
virtual bool can_return_date() const { return true; }
virtual bool can_return_time() const { return true; }
virtual bool can_return_extract_source(interval_type type) const;
virtual bool is_bool_type() const { return false; }
virtual bool is_general_purpose_string_type() const { return false; }
virtual uint Item_time_precision(THD *thd, Item *item) const;