[MDEV-24387] Wrong number of decimal digits in certain UNION/Subqery constellation Created: 2020-12-10 Updated: 2021-04-05 Resolved: 2021-01-13 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data types |
| Affects Version/s: | 10.3.27, 10.4.17, 10.5.8 |
| Fix Version/s: | 10.3.28, 10.4.18, 10.5.9 |
| Type: | Bug | Priority: | Major |
| Reporter: | Hartmut Holzgraefe | Assignee: | Alexander Barkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
UNION of an UNSIGNED result, and a NULL result from a subquery, leads to wrong number of decimals. See the following two one liner test queries, which were run with `mysql --column-type-info`. This only started with 10.3.
|
| Comments |
| Comment by Alice Sherepa [ 2020-12-10 ] |
|
it was changed after https://github.com/MariaDB/server/commit/705fc43eaa ( |
| Comment by Rucha Deodhar [ 2021-01-12 ] |
|
Patch: https://github.com/MariaDB/server/commit/f2392c72cb354224db36066f62dacb228c70d7a0 |
| Comment by Alexander Barkov [ 2021-01-12 ] |
|
The patch https://github.com/MariaDB/server/commit/f2392c72cb354224db36066f62dacb228c70d7a0 looks OK to me. I suggest to change tests though: instead of calling "mysql" command line client, please execute these queries directly in *.test file using --enable_metadata and --disable_metadata around queries. This is the usual way how we check result set metadata. |
| Comment by Rucha Deodhar [ 2021-01-12 ] |
|
Patch after latest changes: https://github.com/MariaDB/server/commit/c597d9234c0072a77122f2810212877f1a532d3d |
| Comment by Alexander Barkov [ 2021-01-13 ] |
|
Ok to push. Thanks! |