Bug #23085 | OR clause is checking more conditions than needed to satisfy | ||
---|---|---|---|
Submitted: | 8 Oct 2006 1:01 | Modified: | 13 Oct 2006 23:57 |
Reporter: | Baron Schwartz (Basic Quality Contributor) | Email Updates: | |
Status: | Can't repeat | Impact on me: | |
Category: | MySQL Server | Severity: | S2 (Serious) |
Version: | 5.0.22-Debian_0ubuntu6.06.2-log | OS: | Linux (Ubuntu 6.06) |
Assigned to: | CPU Architecture: | Any |
[8 Oct 2006 1:01]
Baron Schwartz
[8 Oct 2006 1:02]
Baron Schwartz
Script to set up tables and populate them with test data.
Attachment: setup.sql (text/x-sql), 1.70 KiB.
[13 Oct 2006 8:27]
Sveta Smirnova
Thank you for the report. I can not repeat it using last BK sources.
[13 Oct 2006 23:57]
Baron Schwartz
I tried it at work too, 5.0.21-log on Gentoo, and got the same wrong results. To be more clear, the query returns +----------+----------------+ | c_title | c_apply_object | +----------+----------------+ | list_all | 0 | +----------+----------------+ but it should return +---------------+----------------+ | c_title | c_apply_object | +---------------+----------------+ | create | 0 | | list_all | 0 | | list_owned_by | 0 | +---------------+----------------+ So you got three rows in all cases? Maybe it is fixed then.
[14 Oct 2006 19:30]
Sveta Smirnova
>So you got three rows in all cases? Maybe it is fixed then. Yes, I've got three rows in all cases. Use current version accessible from http://dev.mysql.com/downloads/mysql/5.0.html