From da4479ef9d67af524784ad26d37509ab6d29665f Mon Sep 17 00:00:00 2001 From: Alexander Barkov Date: Tue, 26 Oct 2021 17:53:17 +0400 Subject: MDEV-26732 Assertion `0' failed in Item::val_native add a test case --- plugin/type_uuid/mysql-test/type_uuid/type_uuid.result | 8 ++++++++ plugin/type_uuid/mysql-test/type_uuid/type_uuid.test | 6 ++++++ 2 files changed, 14 insertions(+) diff --git a/plugin/type_uuid/mysql-test/type_uuid/type_uuid.result b/plugin/type_uuid/mysql-test/type_uuid/type_uuid.result index 77e718ca93c..43ef4e911dc 100644 --- a/plugin/type_uuid/mysql-test/type_uuid/type_uuid.result +++ b/plugin/type_uuid/mysql-test/type_uuid/type_uuid.result @@ -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: '' diff --git a/plugin/type_uuid/mysql-test/type_uuid/type_uuid.test b/plugin/type_uuid/mysql-test/type_uuid/type_uuid.test index c3c704ad29d..65574ac11d3 100644 --- a/plugin/type_uuid/mysql-test/type_uuid/type_uuid.test +++ b/plugin/type_uuid/mysql-test/type_uuid/type_uuid.test @@ -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 > ''; -- cgit v1.2.1