Bug #2436 | SELECT (SELECT) error | ||
---|---|---|---|
Submitted: | 17 Jan 2004 23:02 | Modified: | 21 Jan 2004 3:54 |
Reporter: | Andrey | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server | Severity: | S2 (Serious) |
Version: | 4.1.1 | OS: | Windows (WinXP, Win2K) |
Assigned to: | Victor Vagin | CPU Architecture: | Any |
[17 Jan 2004 23:02]
Andrey
[18 Jan 2004 5:26]
Alexander Keremidarski
Conctinuing example from the point where table t2 is of InnoDB type select t.col1, (select t2.name from t2 where t2.id=t.col1) from t; +------+---------------------------------------------+ | col1 | (select t2.name from t2 where t2.id=t.col1) | +------+---------------------------------------------+ | 1 | first | | 2 | NULL | | 3 | NULL | +------+---------------------------------------------+ 3 rows in set (0.00 sec) mysql> alter table t2 type=MyISAM; Query OK, 3 rows affected, 1 warning (0.03 sec) Records: 3 Duplicates: 0 Warnings: 0 mysql> select t.col1, (select t2.name from t2 where t2.id=t.col1) from t; +------+---------------------------------------------+ | col1 | (select t2.name from t2 where t2.id=t.col1) | +------+---------------------------------------------+ | 1 | first | | 2 | second | | 3 | third | +------+---------------------------------------------+
[18 Jan 2004 20:31]
Andrey
I know, that it works with MyISAM tables. It returns wrong result _only_ on InnoDB tables...
[21 Jan 2004 3:54]
Victor Vagin
Thank you for your bug report. This issue has been committed to our source repository of that product and will be incorporated into the next release. If necessary, you can access the source repository and build the latest available version, including the bugfix, yourself. More information about accessing the source trees is available at http://www.mysql.com/doc/en/Installing_source_tree.html Additional info: the bug was fixed by sanja on the day of bug report (ChangeSet 1.1712) use newer version (4.1 tree)