[MDEV-23235] Assertion `part_id == m_last_part' failed in ha_partition::delete_row Created: 2020-07-20 Updated: 2021-10-14 Resolved: 2021-10-14 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Backup, Partitioning, Virtual Columns |
| Affects Version/s: | 10.4, 10.5 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Elena Stepanova | Assignee: | Aleksey Midenkov |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||
| Description |
|
Reproducible on 10.4 and 10.5 debug builds. |
| Comments |
| Comment by Aleksey Midenkov [ 2021-10-14 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Test case failure is hidden by | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Aleksey Midenkov [ 2021-10-14 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Reproduces for 10.4 ce141d07142
Explanatory test case
Result
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Aleksey Midenkov [ 2021-10-14 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
CauseWhile EMPTY_STRING_IS_NULL is active field is calculated as NULL and is inserted into p0 but as original value (empty string). SELECT displays NULL as long as EMPTY_STRING_IS_NULL is on but displays empty string otherwise. When EMPTY_STRING_IS_NULL is off INSERT writes into p1 and therefore empty strings are expected there. The assertion happened because empty string is found in p0 and EMPTY_STRING_IS_NULL is inactive. The fix for |