mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Use inner join instead of a left join.
In some database servers an INNER join performs better than a LEFT join. Fixes #3979
This commit is contained in:
parent
6ce10b28c9
commit
3bdcf7b440
1 changed files with 1 additions and 1 deletions
|
@ -163,7 +163,7 @@ class AclNode extends Model {
|
|||
'joins' => array(array(
|
||||
'table' => $table,
|
||||
'alias' => "{$type}0",
|
||||
'type' => 'LEFT',
|
||||
'type' => 'INNER',
|
||||
'conditions' => array(
|
||||
$db->name("{$type}.lft") . ' <= ' . $db->name("{$type}0.lft"),
|
||||
$db->name("{$type}.rght") . ' >= ' . $db->name("{$type}0.rght")
|
||||
|
|
Loading…
Add table
Reference in a new issue