[MDEV-12963] Query bug since 10.0.31 Created: 2017-05-31 Updated: 2017-06-08 Resolved: 2017-06-08 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Optimizer |
| Affects Version/s: | 5.5, 10.0, 10.1, 10.0.31, 10.2 |
| Fix Version/s: | 5.5.57 |
| Type: | Bug | Priority: | Major |
| Reporter: | Chris Peden | Assignee: | Igor Babaev |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | None | ||
| Environment: |
Centos 7, cpanel |
||
| Description |
|
I use a software called elevatedX. I recently ran a cpanel upgrade that upgraded MariaDB to 10.0.31. Since then the counting query in elevatedx runs but doesn't return any results. Prior to this everything was working find. ElevatedX has said its a bug in MariaDB. Here is what they told me. I apologize for lack of depth as I am not a dev.
Any information on if this can be fixed or how I can downgrade would be appreciated. |
| Comments |
| Comment by Mark El-Wakil [ 2017-06-01 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
Here's how to reproduce this on 10.0.31: Table schema: CREATE TABLE `test_bug_table` ( Populate data: Query that works: Query that does not work: The query above works on 10.0.30, but breaks on 10.0.31. The issue here is that specifying "OR TotalDate IS NULL" should not exclude results from the subquery. This looks like a pretty big regression. | ||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Alice Sherepa [ 2017-06-01 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
I can repeat in on 10.0.31, the problem does not appear in 10.1.23, 10.2.6, 10.0.30
| ||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2017-06-05 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
Thanks for the report and test case. Reproducible as described (I used the test case from Alice's comment, just slightly modified).
The problem was introduced in 5.5 by the revision below, so it's just the matter of time when it appears in higher versions. By now it's in all main trees.
| ||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Igor Babaev [ 2017-06-08 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
The fix for this bug was pushed into the 5.5 tree. | ||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Mark El-Wakil [ 2017-06-08 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
@igor Thank you very much for the fix. Two things: Thanks! | ||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Sergei Golubchik [ 2017-06-08 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
1. Yes, absolutely. Please see https://jira.mariadb.org for the currently planned release schedule. |