Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.5
-
None
Description
According to MDEV-274, CAST from INET6 to anything other than CHAR or BINARY should produce an error. It doesn't for FLOAT (while it does for DOUBLE):
create table t1 (a inet6); |
insert into t1 values ('::'); |
select cast(a as float) from t1; |
10.5 b5fae7f7 |
MariaDB [test]> select cast(a as float) from t1; |
+------------------+ |
| cast(a as float) | |
+------------------+ |
| 0 |
|
+------------------+ |
1 row in set (0.000 sec) |
Attachments
Issue Links
- relates to
-
MDEV-274 The data type for IPv6/IPv4 addresses in MariaDB
- Closed
-
MDEV-20784 Testing for MDEV-274 (INET6, data type for IPv6/IPv4 addresses)
- Closed