Bug #6565 | Views: Mix of UNION ALL and UNION DISTINCT creates different view | ||
---|---|---|---|
Submitted: | 11 Nov 2004 1:13 | Modified: | 25 Feb 2005 19:57 |
Reporter: | Shuichi Tamagawa | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server | Severity: | S3 (Non-critical) |
Version: | 4.1 | OS: | Linux (SuSE Linux 9.0) |
Assigned to: | Oleksandr Byelkin | CPU Architecture: | Any |
[11 Nov 2004 1:13]
Shuichi Tamagawa
[11 Nov 2004 3:20]
MySQL Verification Team
Verified on latest BK source.
[13 Feb 2005 23:13]
Oleksandr Byelkin
It is 4.1 bug of subqueries in the FROM clause: --- 1,18 ---- + create table t1(a int); + create table t2(a int); + create table t3(a int); + insert into t1 values(1),(1); + insert into t2 values(2),(2); + insert into t3 values(3),(3); + select * from t1 union distinct select * from t2 union all select * from t3; + a + 1 + 2 + 3 + 3 + select * from (select * from t1 union distinct select * from t2 union all + select * from t3) X; + a + 1 + 2 + 3 -------------------------------------------------------
[14 Feb 2005 0:07]
Oleksandr Byelkin
ChangeSet 1.2183 05/02/14 02:06:21 bell@sanja.is.com.ua +3 -0 removed wrong distinct UNION detection (BUG#6565)
[23 Feb 2005 14:15]
Oleksandr Byelkin
Thank you for bugreport! Bugfix is pushed to 4.1.11/5.0.3 source trees.
[25 Feb 2005 19:57]
Paul DuBois
Noted in 4.1.11, 5.0.3 changelogs.