SyncRule: avoid issues with auto-aliased columns
Affects some ZF versions
This commit is contained in:
parent
e871c1c534
commit
ef4eecae6f
|
@ -50,7 +50,7 @@ class SyncRule extends DbObject
|
||||||
$db->select()
|
$db->select()
|
||||||
->from(
|
->from(
|
||||||
'sync_property',
|
'sync_property',
|
||||||
'(CASE WHEN MAX(priority) IS NULL THEN 1 ELSE MAX(priority) + 1 END)'
|
array('priority' => '(CASE WHEN MAX(priority) IS NULL THEN 1 ELSE MAX(priority) + 1 END)')
|
||||||
)->where('rule_id = ?', $this->id)
|
)->where('rule_id = ?', $this->id)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue