[MDEV-21319] COUNT(*) returns 1, actual SELECT returns no result in 10.3.21, but 1 result in 10.1.41 Created: 2019-12-13 Updated: 2019-12-20 Resolved: 2019-12-19 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Temporal Types |
| Affects Version/s: | 10.2.27, 10.1.42, 10.3.18, 10.4.8 |
| Fix Version/s: | 10.1.44, 10.2.31, 10.3.22, 10.4.12, 10.5.1 |
| Type: | Bug | Priority: | Major |
| Reporter: | Mario DE WEERD | Assignee: | Alexander Barkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | select | ||
| Environment: |
10.3.21-MariaDB-1:10.3.21+maria~stretch-log - mariadb.org binary distribution Apache/2.4.25 (Debian) |
||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Description |
| Comments |
| Comment by Alice Sherepa [ 2019-12-16 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
could you please add your .cnf file(s), it does not reproduce for me with the default settings
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Mario DE WEERD [ 2019-12-16 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
The
is working, but not the actual select (2nd query in the report). I had to revert this server instance to version 10.1, but another server instance that served as the reference also has the issue. I've attache the configuration files (I removed the passwords). | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Alice Sherepa [ 2019-12-17 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Thanks for the report! The query returns wrong results after 29bbf4749ebcfe328d73ca93c7ee5 commit
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Alexander Barkov [ 2019-12-18 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
The same problem is repeatable with TIME:
The first SELECT correctly returns:
The second SELECT erroneously returns:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Alexander Barkov [ 2019-12-19 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
A related problem:
Notice, there's inconsistency between result from the table and from the equivalent view. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Mario DE WEERD [ 2019-12-20 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Thanks for fixing this. |