summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Search.pm
diff options
context:
space:
mode:
authormkanat%kerio.com <>2005-02-20 16:53:16 +0100
committermkanat%kerio.com <>2005-02-20 16:53:16 +0100
commite547dd6d7b7b9a3c2135c56dd6b7a433743fd4b1 (patch)
tree179cd1f21b8e26b2cf2feec6ebfe30ddbd33afdd /Bugzilla/Search.pm
parent335b8c125f821a96ddfd769163c92c1d74ce62f6 (diff)
downloadbugzilla-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.pm3
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 {