Revert "NotificationhistoryQuery: Improve JOIN performance"
This reverts commit a6d1115d0f
.
Accidentally commited..
This commit is contained in:
parent
10a65f1e27
commit
d4f659c544
|
@ -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()) {
|
||||
|
|
Loading…
Reference in New Issue