[MDEV-20610] Assertion failed or btr_validate_index(..) in row_upd_sec_index_entry on a time_zone change Created: 2019-09-17 Updated: 2023-04-27 |
|
| Status: | Confirmed |
| Project: | MariaDB Server |
| Component/s: | Data types |
| Affects Version/s: | 10.2, 10.3, 10.4, 10.5, 10.6 |
| Fix Version/s: | 10.4, 10.5, 10.6 |
| Type: | Bug | Priority: | Major |
| Reporter: | Alexander Barkov | Assignee: | Alexander Barkov |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||||||||||||||||||||||
| Description |
|
This script:
crashes with the following stack trace:
This happens because DATETIME -> TIMESTAMP conversion depends in the @@time_zone system variable. |
| Comments |
| Comment by Alexander Barkov [ 2019-09-18 ] | ||||||||||||||||||||||||||||||||||||||||||
|
The same problem is repeatable with TIMESTAMP->DATETIME conversion:
| ||||||||||||||||||||||||||||||||||||||||||
| Comment by Alexander Barkov [ 2019-09-18 ] | ||||||||||||||||||||||||||||||||||||||||||
|
The same problem is repeatable with TIMESTAMP->DECIMAL conversion, because TIMESTAMP is first converted to DATETIME, then DATETIME is converted to DECIMAL:
| ||||||||||||||||||||||||||||||||||||||||||
| Comment by Alexander Barkov [ 2019-09-18 ] | ||||||||||||||||||||||||||||||||||||||||||
|
The same problem is repeatable with DECIMAL->TIMESTAMP conversion:
| ||||||||||||||||||||||||||||||||||||||||||
| Comment by Alexander Barkov [ 2019-09-25 ] | ||||||||||||||||||||||||||||||||||||||||||
|
A similar problem is repeatable with @@dev_precision_increment with MyISAM
Also repeatable with these scripts:
| ||||||||||||||||||||||||||||||||||||||||||
| Comment by Alexander Barkov [ 2019-09-25 ] | ||||||||||||||||||||||||||||||||||||||||||
|
The problem is also repeatable with the @@max_allowed_packet variable with MyISAM:
| ||||||||||||||||||||||||||||||||||||||||||
| Comment by Alice Sherepa [ 2021-08-26 ] | ||||||||||||||||||||||||||||||||||||||||||
|
also on 10.6:
|