Fix order of parameter and escaping
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
65efb388e6
commit
fd75c08238
1 changed files with 2 additions and 2 deletions
|
@ -165,12 +165,12 @@ class Loader implements IMimeTypeLoader {
|
|||
->where($update->expr()->neq(
|
||||
'mimetype', $update->createNamedParameter($mimetypeId)
|
||||
))
|
||||
->andwhere($update->expr()->neq(
|
||||
->andWhere($update->expr()->neq(
|
||||
'mimetype', $update->createNamedParameter($isFolderId)
|
||||
))
|
||||
->andWhere($update->expr()->like(
|
||||
$update->createFunction('LOWER(' . $update->getColumnName('name') . ')'),
|
||||
'%' . $this->dbConnection->escapeLikeParameter($update->createNamedParameter('.' . $ext))
|
||||
$update->createNamedParameter('%' . $this->dbConnection->escapeLikeParameter('.' . $ext))
|
||||
));
|
||||
return $update->execute();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue