1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

MDEV-13790 UNHEX() of a somewhat complicated CONCAT() returns NULL

This commit is contained in:
Alexander Barkov
2018-01-30 11:35:27 +04:00
parent dae4fb0acb
commit c4a908cb56
4 changed files with 76 additions and 117 deletions

View File

@ -262,3 +262,9 @@ c2
abcdefghi-abcdefghi
DROP TABLE t1;
SET optimizer_switch=@save_optimizer_switch;
#
# MDEV-13790 UNHEX() of a somewhat complicated CONCAT() returns NULL
#
SELECT UNHEX(CONCAT('414C2', HEX(8 + ROUND(RAND()*7)), SUBSTR(SHA(UUID()),6,33),HEX(2+ROUND(RAND()*8)))) IS NULL AS c1;
c1
0