Use CASE instead of IF statement to be compatible with postgres
This commit is contained in:
parent
657cb5ea32
commit
51510f1665
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ class tasklist_database_driver extends tasklist_driver
|
|||
$result = $this->rc->db->query(
|
||||
"SELECT *, tasklist_id AS id FROM " . $this->db_lists . "
|
||||
WHERE user_id=?
|
||||
ORDER BY IF(name='INBOX', 0, 1), name",
|
||||
ORDER BY CASE WHEN name='INBOX' THEN 0 ELSE 1 END, name",
|
||||
$this->rc->user->ID
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue