Bug #28831 | ALIAS is where-condition | ||
---|---|---|---|
Submitted: | 1 Jun 2007 11:04 | Modified: | 1 Jun 2007 13:12 |
Reporter: | Peter Laursen (Basic Quality Contributor) | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server | Severity: | S3 (Non-critical) |
Version: | any | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[1 Jun 2007 11:04]
Peter Laursen
[1 Jun 2007 12:27]
Sveta Smirnova
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://dev.mysql.com/doc/ and the instructions on how to report a bug at http://bugs.mysql.com/how-to-report.php Thank you for the report. But aliases is not allowed in WHERE clause. See also http://dev.mysql.com/doc/refman/5.0/en/select.html: # It is not allowable to use a column alias in a WHERE clause, because the column value might not yet be determined when the WHERE clause is executed. See Section B.1.5.4, “Problems with Column Aliases”.
[1 Jun 2007 13:12]
Peter Laursen
OK - it seems that I overlooked that B.1.5.4. Problems with Column Aliases .. paragraph!