[MDEV-15765] BETWEEN not working in certain cases Created: 2018-04-03 Updated: 2018-06-04 Resolved: 2018-04-17 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data Manipulation - Subquery |
| Affects Version/s: | 10.2.14 |
| Fix Version/s: | 10.2.15 |
| Type: | Bug | Priority: | Blocker |
| Reporter: | Toshko Andreev | Assignee: | Igor Babaev |
| Resolution: | Fixed | Votes: | 2 |
| Labels: | None | ||
| Environment: |
Ubuntu Server 16.04 LTS |
||
| Issue Links: |
|
||||||||||||||||
| Description |
|
In MariaDB 10.2.14 the following SQLs do not work as intended, specifically BETWEEN seems to be broken. In 10.2.13 everything works as expected.
|
| Comments |
| Comment by Alice Sherepa [ 2018-04-04 ] | ||||||||||||||||||||||||||||||||||||||
|
after be3651b7005ed550be5a2a4b8bb2c600f9870cfa commit (10.2):
before:
| ||||||||||||||||||||||||||||||||||||||
| Comment by Smail Mustafa [ 2018-04-08 ] | ||||||||||||||||||||||||||||||||||||||
|
An extremely serious bug for us. | ||||||||||||||||||||||||||||||||||||||
| Comment by Alexander Barkov [ 2018-04-09 ] | ||||||||||||||||||||||||||||||||||||||
|
A smaller test script:
It returns one row in 10.1, and empty set in 10.2. | ||||||||||||||||||||||||||||||||||||||
| Comment by Alexander Barkov [ 2018-04-09 ] | ||||||||||||||||||||||||||||||||||||||
|
This patch fixes the problem:
However:
Reassigning to Igor who added Item_cache_temporal::convert_to_basic_const_item(). | ||||||||||||||||||||||||||||||||||||||
| Comment by Oleksandr Byelkin [ 2018-04-11 ] | ||||||||||||||||||||||||||||||||||||||
|
OK ti push | ||||||||||||||||||||||||||||||||||||||
| Comment by Igor Babaev [ 2018-04-17 ] | ||||||||||||||||||||||||||||||||||||||
|
A fix for this bug was pushed into 10.2 |