diff options
author | Sergei Golubchik <serg@mariadb.org> | 2020-01-21 15:17:43 +0100 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2020-01-21 21:15:10 +0100 |
commit | 8eec2d61fcb1d4ce4fcd56989c6fe13cd012ecad (patch) | |
tree | 40ff28a21b62c5f7e2acadb971e2788f9b5a7b79 /sql/item_timefunc.h | |
parent | 4e7f3fb8332c42c3beb2376ee0d90f559f1e7470 (diff) | |
download | mariadb-git-8eec2d61fcb1d4ce4fcd56989c6fe13cd012ecad.tar.gz |
MDEV-21249 MariaDB 10.3.10 When referring to bigint to generate timestamp data in the virtual generated column, the value of the generated column does not change when the time zone changes
FROM_UNIXTIME() depends on @@time_zone, so it's VCOL_SESSION_FUNC
Diffstat (limited to 'sql/item_timefunc.h')
-rw-r--r-- | sql/item_timefunc.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/item_timefunc.h b/sql/item_timefunc.h index c89b6921796..f25fe3a551f 100644 --- a/sql/item_timefunc.h +++ b/sql/item_timefunc.h @@ -867,6 +867,10 @@ class Item_func_from_unixtime :public Item_datetimefunc const char *func_name() const { return "from_unixtime"; } bool fix_length_and_dec(); bool get_date(MYSQL_TIME *res, ulonglong fuzzy_date); + bool check_vcol_func_processor(void *arg) + { + return mark_unsupported_function(func_name(), "()", arg, VCOL_SESSION_FUNC); + } Item *get_copy(THD *thd, MEM_ROOT *mem_root) { return get_item_copy<Item_func_from_unixtime>(thd, mem_root, this); } }; |