[MDEV-3988] crash in create_tmp_table Created: 2012-12-28 Updated: 2013-01-22 Resolved: 2013-01-22 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 10.0.0, 5.5.28a, 5.3.11 |
| Fix Version/s: | 10.0.2, 5.5.29, 5.3.12 |
| Type: | Bug | Priority: | Major |
| Reporter: | sbester1 | Assignee: | Oleksandr Byelkin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
windows, linux |
||
| Description |
|
How to Repeat:
Windows Call Stack:
|
| Comments |
| Comment by Elena Stepanova [ 2012-12-28 ] |
|
The problem appeared in maria/5.3 with this revision: |
| Comment by Oleksandr Byelkin [ 2013-01-15 ] |
|
get_tmp_table_field returns really result_field in this case select distinct (1 + (select 1 from `t2` where `a`)) `d2` from `t1`; |
| Comment by Oleksandr Byelkin [ 2013-01-15 ] |
|
temporary table is not created (and so result_field is not filled) becase the subquery is a constant. |
| Comment by Oleksandr Byelkin [ 2013-01-15 ] |
|
other constant excluded from group list earlier. |
| Comment by Oleksandr Byelkin [ 2013-01-15 ] |
|
fix commited for review. |
| Comment by Oleksandr Byelkin [ 2013-01-16 ] |
|
Pushed to 5.3 |