[MDEV-31719] Wrong result of: WHERE inet6_column IN ('','::1') Created: 2023-07-17 Updated: 2023-08-18 Resolved: 2023-08-18 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data types, Plugin - INET6 |
| Affects Version/s: | 10.6, 10.7, 10.8, 10.9, 10.10, 10.11, 11.0 |
| Fix Version/s: | 10.6.16, 10.10.7, 10.11.6, 11.0.4, 11.1.2, 11.2.1 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Alexander Barkov | Assignee: | Alexander Barkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
This script erroneously treats '' as a correct INET6 value of '::' and returns one row:
The comparison operator works as expected on the contrary:
|
| Comments |
| Comment by Alexander Barkov [ 2023-07-17 ] | ||||||||||
|
The same problem is repeatable with UUID stating from 10.9. The IN operator returns a wrong row:
The comparison operator works fine:
| ||||||||||
| Comment by Alexander Barkov [ 2023-07-20 ] | ||||||||||
|
Pushed to 10.5 in a single patch with | ||||||||||
| Comment by Alexander Barkov [ 2023-08-16 ] | ||||||||||
|
The merge 10.5->10.6 for this patch went wrong. Waiting for it to propagate to 10.9. |