mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 09:42:09 -04:00
fix(db): InaccessibleMethod: Cannot access private method Doctrine\DBAL\Statement::execute from context OC\DB\PreparedStatement
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
fb3d4d579f
commit
2d27a32870
1 changed files with 2 additions and 2 deletions
|
|
@ -66,7 +66,7 @@ class PreparedStatement implements IPreparedStatement {
|
|||
}
|
||||
|
||||
public function execute($params = null): IResult {
|
||||
return ($this->result = new ResultAdapter($this->statement->execute($params)));
|
||||
return ($this->result = new ResultAdapter($this->statement->executeQuery($params)));
|
||||
}
|
||||
|
||||
public function rowCount(): int {
|
||||
|
|
@ -78,6 +78,6 @@ class PreparedStatement implements IPreparedStatement {
|
|||
return $this->result;
|
||||
}
|
||||
|
||||
throw new Exception("You have to execute the prepared statement before accessing the results");
|
||||
throw new \Exception("You have to execute the prepared statement before accessing the results");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue