Bug #22679 | Join using addtime and subtime functions and BETWEEN stopped working V 5.0 | ||
---|---|---|---|
Submitted: | 25 Sep 2006 19:01 | Modified: | 26 Sep 2006 1:27 |
Reporter: | Todd Schmitter | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server | Severity: | S3 (Non-critical) |
Version: | 5.0.21 | OS: | |
Assigned to: | CPU Architecture: | Any |
[25 Sep 2006 19:01]
Todd Schmitter
[25 Sep 2006 22:42]
MySQL Verification Team
Thank you for the bug report. Could you please provide a test script with the tables definition/insert data/queries and the wrong result you got and the expected result. Thanks in advance.
[26 Sep 2006 1:27]
Todd Schmitter
The "original" query that stopped working should have been this (I mistakenly pasted the "new" query in the original post): SELECT t.date AS date, t.time AS time, t.qwhsssid AS subsystem, qw0225av / ( 1024 *1024 ) AS qw0225av, qw0225cr / ( 1024 *1024 ) AS qw0225cr, qw0225so / ( 1024 *1024 ) AS qw0225so, qw0225at, qtmaxds, qw0225cd / ( 1024 *1024 ) AS qw0225cd, qsstcont, qsstcrit, qsstabnd FROM schmitter.db2stato s, schmitter.t102s225 t WHERE t.date = '2006-09-21' AND t.qwhsssid = 'D2D0' AND t.qw0225av =865607680 AND t.date = s.date AND t.time BETWEEN subtime( s.time, '00:00:01' ) AND addtime( s.time, '00:00:01' ) AND t.qwhsssid = s.qwhsssid In any case, I have now created test tables to produce a repeatable script, and the "bug" is not occurring. So now I suspect there is a problem with the original tables.