Bug #48292 | ROW() operator does not accept single values (inconsistency) | ||
---|---|---|---|
Submitted: | 25 Oct 2009 19:04 | Modified: | 27 Oct 2009 6:04 |
Reporter: | Shawn Green | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Documentation | Severity: | S3 (Non-critical) |
Version: | any | OS: | Any |
Assigned to: | Jon Stephens | CPU Architecture: | Any |
[25 Oct 2009 19:04]
Shawn Green
[25 Oct 2009 19:16]
Valeriy Kravchuk
Verified just as described with recent 5.1.41 from bzr. I should note that manual on that very page says: "The normal use of row constructors is for comparisons with subqueries that return two or more columns." So, maybe all works as intended and only manual should state this more clearly.
[27 Oct 2009 6:00]
Jon Stephens
A row constructor work on a row. A subquery that returns a single column does not return a row, but rather a single value. This is why it's referred to as a scalar subquery. So this is a Docs bug.
[27 Oct 2009 6:04]
Jon Stephens
Thank you for your bug report. This issue has been addressed in the documentation. The updated documentation will appear on our website shortly, and will be included in the next release of the relevant products.