diff options
author | mkanat%kerio.com <> | 2005-02-20 16:53:16 +0100 |
---|---|---|
committer | mkanat%kerio.com <> | 2005-02-20 16:53:16 +0100 |
commit | e547dd6d7b7b9a3c2135c56dd6b7a433743fd4b1 (patch) | |
tree | 179cd1f21b8e26b2cf2feec6ebfe30ddbd33afdd /Bugzilla/Search.pm | |
parent | 335b8c125f821a96ddfd769163c92c1d74ce62f6 (diff) | |
download | bugzilla-e547dd6d7b7b9a3c2135c56dd6b7a433743fd4b1.tar.gz bugzilla-e547dd6d7b7b9a3c2135c56dd6b7a433743fd4b1.tar.xz |
Bug 280499: Replace "TO_DAYS()" with Bugzilla::DB function call
Patch By Tomas Kopal <Tomas.Kopal@altap.cz> r=mkanat, a=justdave
Diffstat (limited to 'Bugzilla/Search.pm')
-rw-r--r-- | Bugzilla/Search.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm index 6584f1080..82cbb9aa6 100644 --- a/Bugzilla/Search.pm +++ b/Bugzilla/Search.pm @@ -797,7 +797,8 @@ sub init { }, "^changedin," => sub { - $f = "(to_days(now()) - to_days(bugs.delta_ts))"; + $f = "(" . $dbh->sql_to_days('NOW()') . " - " . + $dbh->sql_to_days('bugs.delta_ts') . ")"; }, "^component,(?!changed)" => sub { |