MDEV-34771 Types mismatch when cloning items causes debug assertion
Missing methods added to Item_bin_string
This commit is contained in:
parent
db8ab4aca2
commit
fccfdc28b8
@ -27,4 +27,13 @@ a
|
||||
|
||||
DROP TABLE t1;
|
||||
DROP VIEW v1, v2;
|
||||
#
|
||||
# MDEV-34771: Types mismatch when cloning items causes debug assertion
|
||||
#
|
||||
CREATE VIEW t AS SELECT 1 AS a;
|
||||
SELECT * FROM t WHERE a=b'';
|
||||
a
|
||||
drop view t;
|
||||
#
|
||||
# End of 10.5 tests
|
||||
#
|
||||
|
@ -30,4 +30,14 @@ SELECT * FROM v2 WHERE a='' AND CASE '' WHEN '' THEN '' ELSE a END='';
|
||||
DROP TABLE t1;
|
||||
DROP VIEW v1, v2;
|
||||
|
||||
--echo #
|
||||
--echo # MDEV-34771: Types mismatch when cloning items causes debug assertion
|
||||
--echo #
|
||||
|
||||
CREATE VIEW t AS SELECT 1 AS a;
|
||||
SELECT * FROM t WHERE a=b'';
|
||||
drop view t;
|
||||
|
||||
--echo #
|
||||
--echo # End of 10.5 tests
|
||||
--echo #
|
||||
|
@ -4946,6 +4946,9 @@ class Item_bin_string: public Item_hex_hybrid
|
||||
public:
|
||||
Item_bin_string(THD *thd, const char *str, size_t str_length);
|
||||
void print(String *str, enum_query_type query_type) override;
|
||||
Item *do_get_copy(THD *thd) const override
|
||||
{ return get_item_copy<Item_bin_string>(thd, this); }
|
||||
Item *do_build_clone(THD *thd) const override { return get_copy(thd); }
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user