Skip to content

Commit 799952d

Browse files
committed
permission placeholder
1 parent 8e2e059 commit 799952d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Database/Adapter/MariaDB.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1989,7 +1989,7 @@ public function deleteDocuments(string $collection, array $internalIds, array $p
19891989
if (!empty($permissionIds)) {
19901990
$sql = "
19911991
DELETE FROM {$this->getSQLTable($name . '_perms')}
1992-
WHERE _document IN (" . \implode(', ', \array_map(fn ($index) => ":_id_{$index}", \array_keys($permissionIds))) . ")
1992+
WHERE _document IN (" . \implode(', ', \array_map(fn ($index) => ":_pid_{$index}", \array_keys($permissionIds))) . ")
19931993
";
19941994

19951995
if ($this->sharedTables) {
@@ -2001,7 +2001,7 @@ public function deleteDocuments(string $collection, array $internalIds, array $p
20012001
$stmtPermissions = $this->getPDO()->prepare($sql);
20022002

20032003
foreach ($permissionIds as $id => $value) {
2004-
$stmtPermissions->bindValue(":_id_{$id}", $value);
2004+
$stmtPermissions->bindValue(":_pid_{$id}", $value);
20052005
}
20062006

20072007
if ($this->sharedTables) {

0 commit comments

Comments
 (0)