Commit cb4dcf39 authored by Alexander Barkov's avatar Alexander Barkov

MDEV-20363 Assertion `is_unsigned() == attr.unsigned_flag' failed in...

MDEV-20363 Assertion `is_unsigned() == attr.unsigned_flag' failed in Type_handler_longlong::make_table_field
parent 67ddb650
......@@ -377,3 +377,18 @@ DROP TABLE t1;
#
# End of 10.4 tests
#
#
# Start of 10.5 tests
#
#
# MDEV-20363 Assertion `is_unsigned() == attr.unsigned_flag' failed in Type_handler_longlong::make_table_field
#
CREATE TABLE t1 (a INT);
INSERT INTO t1 VALUES (1),(2);
SELECT DISTINCT 1 FROM t1 GROUP BY 0 >> NULL WITH ROLLUP;
1
1
DROP TABLE t1;
#
# End of 10.5 tests
#
......@@ -263,3 +263,21 @@ DROP TABLE t1;
--echo #
--echo # End of 10.4 tests
--echo #
--echo #
--echo # Start of 10.5 tests
--echo #
--echo #
--echo # MDEV-20363 Assertion `is_unsigned() == attr.unsigned_flag' failed in Type_handler_longlong::make_table_field
--echo #
CREATE TABLE t1 (a INT);
INSERT INTO t1 VALUES (1),(2);
SELECT DISTINCT 1 FROM t1 GROUP BY 0 >> NULL WITH ROLLUP;
DROP TABLE t1;
--echo #
--echo # End of 10.5 tests
--echo #
......@@ -1939,9 +1939,7 @@ class Item_func_rollup_const :public Item_func
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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment