[MDEV-13358] FIRST_V throw SQL Fehler (1292): Incorrect datetime value: '' Created: 2017-07-20 Updated: 2020-08-25 Resolved: 2017-10-11 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Optimizer - Window functions, Temporal Types |
| Affects Version/s: | 10.2.6, 10.2.7, 10.2 |
| Fix Version/s: | 10.2.9 |
| Type: | Bug | Priority: | Major |
| Reporter: | Richard Stracke | Assignee: | Vicențiu Ciorbaru |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | None | ||
| Environment: |
tested on 10.2.7 Ubuntu and 10.2.6 Docker (official container) |
||
| Description |
|
To reproduce:
The select (without create table) throw only a warning. It will caused by FIRST_VALUE, the error persists if the datatype in the over clause will be changed to non-datetime, but vanished if the datatype/column in the first_value will be changed to non-datetime. |
| Comments |
| Comment by Elena Stepanova [ 2017-07-20 ] | ||||||||||||
|
Thanks for the report, reproducible as described. Same test case as above:
| ||||||||||||
| Comment by Vicențiu Ciorbaru [ 2017-09-11 ] | ||||||||||||
|
The root cause is the same as the one for |