Revert "NotificationhistoryQuery: Improve JOIN performance"

This reverts commit a6d1115d0f.
Accidentally commited..
This commit is contained in:
Johannes Meyer 2015-06-16 08:13:28 +02:00
parent 10a65f1e27
commit d4f659c544
1 changed files with 9 additions and 0 deletions

View File

@ -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()) {