[MDEV-32244] Wrong bit encoding using COALESCE Created: 2023-09-25 Updated: 2023-10-17 Resolved: 2023-10-17 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data types |
| Affects Version/s: | 10.4, 10.5, 10.6, 10.9, 10.10, 10.11, 10.6.15, 11.2.1 |
| Fix Version/s: | 10.4.32, 10.5.23, 10.6.16, 10.10.7, 10.11.6, 11.0.4, 11.1.3, 11.2.2, 11.3.1 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Diego Dupin | Assignee: | Alexander Barkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||
| Description |
|
Reported initially on Node.js connector When using COALESCE on BIT fields, results type and value are wrong.
Here is how to reproduced :
Result will be :
expected result would have been 0x01 for bit_b and bit_c. Data type for bit_c is expected to be of BIT type |
| Comments |
| Comment by Alexander Barkov [ 2023-10-17 ] | |||||||||||||
|
The same problem is repeatable with the YEAR data type:
|