Commit 03a5455c authored by Oleksandr Byelkin's avatar Oleksandr Byelkin

MDEV-34833 Assertion failure in Item_float::do_build_clone (Item_static_float_func)

Added missing method of Item_static_float_func
parent 872dbec9
......@@ -51,5 +51,15 @@ a
0
DROP VIEW t;
#
# MDEV-34833: Assertion failure in Item_float::do_build_clone
# (Item_static_float_func)
#
CREATE VIEW v1 (f,f2) AS SELECT connection_id(),pi();
CREATE TABLE t1 AS SELECT 1;
SELECT * FROM v1 JOIN t1 ON f=f2;
f f2 1
DROP VIEW v1;
DROP TABLE t1;
#
# End of 10.5 tests
#
......@@ -55,6 +55,18 @@ CREATE VIEW t AS SELECT 0 AS a;
SELECT * FROM t WHERE a=ALL (SELECT 0);
DROP VIEW t;
--echo #
--echo # MDEV-34833: Assertion failure in Item_float::do_build_clone
--echo # (Item_static_float_func)
--echo #
CREATE VIEW v1 (f,f2) AS SELECT connection_id(),pi();
CREATE TABLE t1 AS SELECT 1;
SELECT * FROM v1 JOIN t1 ON f=f2;
DROP VIEW v1;
DROP TABLE t1;
--echo #
--echo # End of 10.5 tests
--echo #
......@@ -4542,6 +4542,8 @@ class Item_static_float_func :public Item_float
{
return const_charset_converter(thd, tocs, true, func_name);
}
Item *do_get_copy(THD *thd) const override
{ return get_item_copy<Item_static_float_func>(thd, this); }
};
......
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