Bug #4661 | Query written in Query Browser doesn't match what's executed | ||
---|---|---|---|
Submitted: | 21 Jul 2004 0:11 | Modified: | 21 Jul 2004 10:45 |
Reporter: | Scott Fleck | Email Updates: | |
Status: | Duplicate | Impact on me: | |
Category: | MySQL Query Browser | Severity: | S1 (Critical) |
Version: | 1.0.3 Alpha | OS: | Windows (XP) |
Assigned to: | Assigned Account | CPU Architecture: | Any |
[21 Jul 2004 0:11]
Scott Fleck
[21 Jul 2004 10:45]
Michael G. Zinner
Thanks for reporting, but this issue has already been reported (http://bugs.mysql.com/bug.php?id=4619) and fixed in the source repository and will be in the next release. What we do is to add the PK fields to the select if the user does a select from a single table. This is useful if a user does SELECT username FROM onlineuser and wants to edit the username. This would not be possible without selecting the PK also. We forgot to detect the DISTINCED keyword, therefore the result was not as expected. We will make this feature optional so it will not cause problems anymore.