summaryrefslogtreecommitdiff
path: root/sql/item_func.h
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.com>2019-08-16 22:49:56 +0400
committerAlexander Barkov <bar@mariadb.com>2019-08-16 22:49:56 +0400
commitcb4dcf39e7c2428922d68f7cb3472d633b82bfe0 (patch)
tree866577f79eb1fe81a42d9fc7d6357c52ff02b7b9 /sql/item_func.h
parent67ddb6507d58b08f88dfede96b057eae34d9d76e (diff)
downloadmariadb-git-cb4dcf39e7c2428922d68f7cb3472d633b82bfe0.tar.gz
MDEV-20363 Assertion `is_unsigned() == attr.unsigned_flag' failed in Type_handler_longlong::make_table_field
Diffstat (limited to 'sql/item_func.h')
-rw-r--r--sql/item_func.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/sql/item_func.h b/sql/item_func.h
index c7b23a49114..eeb8a187bc4 100644
--- a/sql/item_func.h
+++ b/sql/item_func.h
@@ -1939,9 +1939,7 @@ public:
const Type_handler *type_handler() const { return args[0]->type_handler(); }
bool fix_length_and_dec()
{
- collation= args[0]->collation;
- max_length= args[0]->max_length;
- decimals=args[0]->decimals;
+ Type_std_attributes::set(*args[0]);
return FALSE;
}
Item *get_copy(THD *thd)