Commit da4479ef authored by Alexander Barkov's avatar Alexander Barkov Committed by Sergei Golubchik

MDEV-26732 Assertion `0' failed in Item::val_native

add a test case
parent 6bf5a3be
......@@ -3144,3 +3144,11 @@ INSERT INTO t1 VALUES ('00----000000000000000000000000000024');
INSERT INTO t1 VALUES ('5796dac11a1c11--------------ecab4ef859-713e4be4');
INSERT INTO t1 VALUES ('5796dac11a1c11---------------ecab4ef859-713e4be4');
DROP TABLE t1;
#
# MDEV-26732 Assertion `0' failed in Item::val_native
#
SELECT uuid() AS f, var_pop('x') FROM dual HAVING f > '';
f var_pop('x')
Warnings:
Warning 1292 Truncated incorrect DOUBLE value: 'x'
Warning 1292 Incorrect uuid value: ''
......@@ -1646,3 +1646,9 @@ INSERT INTO t1 VALUES ('00----000000000000000000000000000024');
INSERT INTO t1 VALUES ('5796dac11a1c11--------------ecab4ef859-713e4be4');
INSERT INTO t1 VALUES ('5796dac11a1c11---------------ecab4ef859-713e4be4');
DROP TABLE t1;
--echo #
--echo # MDEV-26732 Assertion `0' failed in Item::val_native
--echo #
SELECT uuid() AS f, var_pop('x') FROM dual HAVING f > '';
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