[MDEV-15860] Datetime range search in subquery returns an empty resultset Created: 2018-04-13 Updated: 2018-04-17 Resolved: 2018-04-17 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Optimizer |
| Affects Version/s: | 10.2.14 |
| Fix Version/s: | 10.2.15, 10.3.6 |
| Type: | Bug | Priority: | Major |
| Reporter: | Denis | Assignee: | Alice Sherepa |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Windows Server 2008 R2 x64. |
||
| Issue Links: |
|
||||||||
| Description |
|
SQL mode is `STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION` Create test data as follows
Trying to search data by minimal datetime. The query should have returned one row but an empty result is returned
Affected rows: 0 Found rows: 0 Warnings: 0 Duration for 1 query: 0,172 sec. The condition works though, when split in two like this:
|
| Comments |
| Comment by Alice Sherepa [ 2018-04-17 ] |
|
Fixed by Igor Babaev, commit 740fc2ae084f8f81990de557d696 |