Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.1.25, 10.0.32, 10.2.7, 10.0(EOL), 10.1(EOL), 10.2(EOL)
-
Centos 7
-
10.2.11
Description
The following code snippet was working for me in version 10.2.6. But I saw issues in version 10.2.9, where the variable "ip_full_addr" is returning null instead of expected value 2000::
DECLARE ip_full_addr varchar(39) DEFAULT ""; |
SELECT INET6_NTOA(UNHEX('20000000000000000000000000000000')) into ip_full_addr; |
SELECT ip_full_addr; |
Thanks for the report.
MTR-friendly test case:
--delimiter $$
BEGIN
--delimiter ;
CALL pr();
# Cleanup
Expected result
ip_full_addr
2000::
Actual result
ip_full_addr
NULL
The behavior changed with this commit in 10.0 branch and up:
commit 3a37afec293e36e51b83a9bd338ad5f74e7f63c0
Author: Alexander Barkov <bar@mariadb.org>
Date: Mon Jun 19 12:45:32 2017 +0400
MDEV-10306 Wrong results with combination of CONCAT, SUBSTR and CONVERT in subquery