diff options
author | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-10-07 03:58:28 -0700 |
---|---|---|
committer | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-10-07 03:58:28 -0700 |
commit | 02a049703de6055f09f44f89a5a821814696ce32 (patch) | |
tree | 5918c91ceea49d280c8c3c0ce795da549a8bf4c6 /duplicates.cgi | |
parent | 7307c8c748e3245d65a25c016e7d92c6c7ae2aa4 (diff) | |
download | bugs-02a049703de6055f09f44f89a5a821814696ce32.tar bugs-02a049703de6055f09f44f89a5a821814696ce32.tar.gz bugs-02a049703de6055f09f44f89a5a821814696ce32.tar.bz2 bugs-02a049703de6055f09f44f89a5a821814696ce32.tar.xz bugs-02a049703de6055f09f44f89a5a821814696ce32.zip |
Bug 602165: Change sql_interval to sql_date_math, in preparation for
MS-SQL and SQLite support.
Diffstat (limited to 'duplicates.cgi')
-rwxr-xr-x | duplicates.cgi | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/duplicates.cgi b/duplicates.cgi index 2a52742c6..798599ed0 100755 --- a/duplicates.cgi +++ b/duplicates.cgi @@ -181,8 +181,8 @@ my %since_dups = @{$dbh->selectcol_arrayref( FROM duplicates INNER JOIN bugs_activity ON bugs_activity.bug_id = duplicates.dupe WHERE added = 'DUPLICATE' AND fieldid = ? - AND bug_when >= LOCALTIMESTAMP(0) - " - . $dbh->sql_interval('?', 'DAY') . + AND bug_when >= " + . $dbh->sql_date_math('LOCALTIMESTAMP(0)', '-', '?', 'DAY') . " GROUP BY dupe_of", {Columns=>[1,2]}, $reso_field_id, $changedsince)}; add_indirect_dups(\%since_dups, \%dupe_relation); |