Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.1(EOL)
-
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;"
Unknown column 'foo.bar' in 'field list'
wrapping the argument in an extra SELECT makes it work:
"SELECT foo.bar FROM (SELECT (SELECT ?) AS bar) AS foo;"