try fix error cannot insert multiple commands into prepared statement

This commit is contained in:
2023-09-11 11:23:21 +02:00
parent 92b1b17679
commit c1d70ec63e
6 changed files with 19 additions and 13 deletions

View File

@@ -34,7 +34,7 @@ class PersonMoveRelationHandler implements PersonMoveSqlHandlerInterface
WHERE
cpr2.fromperson_id = %d AND cpr2.toperson_id = %d
OR cpr2.fromperson_id = %d AND cpr2.toperson_id = %d
)
);
SQL, $from->getId(), $from->getId(), $to->getId(), $from->getId(), $from->getId(), $to->getId());
$deleteSql = sprintf(<<<'SQL'