[MDEV-11043] mysql_stmt_prepare() fails with "unknown column" error Created: 2016-10-12 Updated: 2016-10-19 Resolved: 2016-10-19 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Prepared Statements |
| Affects Version/s: | 10.1 |
| Fix Version/s: | 5.5.52, 10.1.18, 10.0.28 |
| Type: | Bug | Priority: | Major |
| Reporter: | tg(x) | Assignee: | Unassigned |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | upstream-fixed | ||
| Environment: |
linux, mariadb-10.1.9 |
||
| Description |
|
mysql_stmt_prepare() fails with the following query (which works from the CLI): "SELECT foo.bar FROM (SELECT ? AS bar) AS foo;" wrapping the argument in an extra SELECT makes it work: |
| Comments |
| Comment by Elena Stepanova [ 2016-10-19 ] | ||||||
|
The problem was fixed by a merge of this commit from upstream:
The fix is in 5.5.52, 10.1.18, 10.2.2, and will be in 10.0.28 when it's released. |