[MDEV-31277] Wrong result on second execution of prepare statement from view create with left join (merged derived table) Created: 2023-05-15 Updated: 2023-11-28 |
|
| Status: | Stalled |
| Project: | MariaDB Server |
| Component/s: | Prepared Statements, Views |
| Affects Version/s: | 10.4, 10.5, 10.6, 10.9, 10.10, 11.0, 11.1 |
| Fix Version/s: | 10.4, 10.5, 10.6, 11.0, 11.1 |
| Type: | Bug | Priority: | Major |
| Reporter: | Lena Startseva | Assignee: | Oleksandr Byelkin |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||||||
| Description |
|
Problem is only on merged derived table. Left join with normal table gives correct result. Testcase:
Actual result:
Expected result:
|
| Comments |
| Comment by Rex Johnston [ 2023-05-15 ] | ||||||||||||||||||||
|
10.4 appears to fail in a slightly different way
vs
| ||||||||||||||||||||
| Comment by Rex Johnston [ 2023-05-16 ] | ||||||||||||||||||||
|
intercepting call in Item_direct_view_ref::save_in_field() first execution, field=="(Field *) {v1.Voted=NULL}" " traced to creation of temporary table, and the fields used. Also first execution, setup_fields/.../Field_iterator_view::create_item() has table_list->field_translation not null, |