From d4f659c5444ed3f92defad7ab98fb60401fe757a Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Tue, 16 Jun 2015 08:13:28 +0200 Subject: [PATCH] Revert "NotificationhistoryQuery: Improve JOIN performance" This reverts commit a6d1115d0f17a6ba626eda23d3b6d2e891052911. Accidentally commited.. --- .../Backend/Ido/Query/NotificationhistoryQuery.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/modules/monitoring/library/Monitoring/Backend/Ido/Query/NotificationhistoryQuery.php b/modules/monitoring/library/Monitoring/Backend/Ido/Query/NotificationhistoryQuery.php index 1195161d3..8bbdc0751 100644 --- a/modules/monitoring/library/Monitoring/Backend/Ido/Query/NotificationhistoryQuery.php +++ b/modules/monitoring/library/Monitoring/Backend/Ido/Query/NotificationhistoryQuery.php @@ -26,6 +26,15 @@ class NotificationhistoryQuery extends IdoQuery ) ); + public function whereToSql($col, $sign, $expression) + { + if ($col === 'UNIX_TIMESTAMP(n.start_time)') { + return 'n.start_time ' . $sign . ' ' . $this->timestampForSql($this->valueToTimestamp($expression)); + } else { + return parent::whereToSql($col, $sign, $expression); + } + } + protected function joinBaseTables() { switch ($this->ds->getDbType()) {