[MDEV-4635] Crash in UNIX_TIMESTAMP(STR_TO_DATE('2020','%Y')) Created: 2013-06-10 Updated: 2013-06-18 Resolved: 2013-06-18 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 10.0.3, 5.5.31, 5.1.67, 5.2.14, 5.3.12 |
| Fix Version/s: | 10.0.4, 5.5.32, 5.3.13 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Alexander Barkov | Assignee: | Alexander Barkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | upstream | ||
| Description |
|
This SQL script crashes the server (debug build):
Stack trace: #4 0x00000000006df193 in sec_since_epoch (year=2020, mon=0, mday=0, hour=0, min=0, sec=0) |
| Comments |
| Comment by Elena Stepanova [ 2013-06-10 ] | ||||
|
Also reproducible on MySQL 5.1, 5.5, but not on 5.6, 5.7. | ||||
| Comment by Alexander Barkov [ 2013-06-13 ] | ||||
|
MySQL-5.6 correctly returns 0: mysql> SET TIME_ZONE='+02:00'; SELECT VERSION(), UNIX_TIMESTAMP(STR_TO_DATE('2020','%Y')); ----------
----------
---------- | ||||
| Comment by Alexander Barkov [ 2013-06-18 ] | ||||
|
Fixed. Pushed into 5.3.13 and 5.5.32. |