[MDEV-17995] INET6_NTOA(ucs2_input) erroneously returns NULL Created: 2018-12-13  Updated: 2018-12-13  Resolved: 2018-12-13

Status: Closed
Project: MariaDB Server
Component/s: Data types
Affects Version/s: 5.5, 10.0, 10.1, 10.2, 10.3, 10.4
Fix Version/s: 10.4.1

Type: Bug Priority: Major
Reporter: Alexander Barkov Assignee: Alexander Barkov
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Blocks
blocks MDEV-274 The data type for IPv6/IPv4 addresses... Closed

 Description   

SELECT HEX(INET6_ATON('1::1')), HEX(INET6_ATON(CONVERT('1::1' USING ucs2)));

+----------------------------------+---------------------------------------------+
| HEX(INET6_ATON('1::1'))          | HEX(INET6_ATON(CONVERT('1::1' USING ucs2))) |
+----------------------------------+---------------------------------------------+
| 00010000000000000000000000000001 | NULL                                        |
+----------------------------------+---------------------------------------------+

Looks wrong. The result for the second column should be equal to the first column.


Generated at Thu Feb 08 08:40:42 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.