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
-
Activity
Link |
This issue relates to |
Description |
According to {code:sql} create table t1 (a inet6); insert into t1 values ('::'); select cast(a as float) from t1; {code} {code:sql|title=10.5 b5fae7f7} MariaDB [test]> select cast(a as float) from t1; +------------------+ | cast(a as float) | +------------------+ | 0 | +------------------+ 1 row in set (0.000 sec) {code} |
According to {code:sql} create table t1 (a inet6); insert into t1 values ('::'); select cast(a as float) from t1; {code} {code:sql|title=10.5 b5fae7f7} MariaDB [test]> select cast(a as float) from t1; +------------------+ | cast(a as float) | +------------------+ | 0 | +------------------+ 1 row in set (0.000 sec) {code} |
issue.field.resolutiondate | 2019-10-11 16:16:19.0 | 2019-10-11 16:16:19.169 |
Fix Version/s | 10.5.0 [ 23709 ] | |
Fix Version/s | 10.5 [ 23123 ] | |
Resolution | Fixed [ 1 ] | |
Status | Open [ 1 ] | Closed [ 6 ] |
Workflow | MariaDB v3 [ 100361 ] | MariaDB v4 [ 156851 ] |