Bug #39042 | Row subquery can be used with all relational operators | ||
---|---|---|---|
Submitted: | 26 Aug 2008 11:25 | Modified: | 26 Nov 2008 16:29 |
Reporter: | Roland Bouman | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Documentation | Severity: | S3 (Non-critical) |
Version: | 5.1 | OS: | Any |
Assigned to: | Paul DuBois | CPU Architecture: | Any |
[26 Aug 2008 11:25]
Roland Bouman
[26 Aug 2008 16:25]
Sveta Smirnova
Thank you for the report. Verified as described.
[26 Nov 2008 16:29]
Paul DuBois
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. Modified http://dev.mysql.com/doc/refman/5.1/en/comparisons-using-subqueries.html: "For a comparison of the subquery to a scalar, the subquery must return a scalar. For a comparison of the subquery to a row constructor, the subquery must be a row subquery that returns a row with the same number of values as the row constructor." (all the operators are allowed, there's no need to enumerate them again.) Also modified the other two sections to indicate that row constructor comparisons are allowed.