Bug #70828 | UNION syntax missing required parentheses | ||
---|---|---|---|
Submitted: | 6 Nov 2013 4:14 | Modified: | 27 Feb 2014 0:08 |
Reporter: | Dustin Bortner | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / NET | Severity: | S1 (Critical) |
Version: | 6.7.4.1 | OS: | Windows |
Assigned to: | Fernando Gonzalez.Sanchez | CPU Architecture: | Any |
[6 Nov 2013 4:14]
Dustin Bortner
[10 Feb 2014 22:36]
Fernando Gonzalez.Sanchez
Posted by developer: With the fix, the limit is wrapped in parenthesis with the nearest query (so its semantics do not apply to the whole union query). This fix will appear in Connector/NET 6.6.7, 6.7.5 & 6.8.4.
[27 Feb 2014 0:08]
Daniel So
Added the following entry into the Connector/Net 6.8.4, 6.7.5, and 6.6.7 changelogs: "When Connector/Net's SQL generator emitted code for the LINQ Union() or Concat() operator, parentheses were not applied around the individual SELECT statements. That could cause a change of meaning for the query when a Take() operator (thus a LIMIT clause in the SQL code) was applied to the last SELECT statement. With this fix, parentheses were put around individual SELECT statements, so that the LIMIT clause will not be applied to the entire result of the UNION operation."