diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2020-10-29 09:31:37 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2020-10-30 19:27:53 +0100 |
commit | fe46149560ede7a071557e4f6b2b32a9d286327a (patch) | |
tree | c73b5ffed897f3a837da65b7f0584017dc350a72 /lib/public/IDBConnection.php | |
parent | 28be188fbca7a0e806993fa3e9d6d377978368b1 (diff) | |
download | nextcloud-server-fe46149560ede7a071557e4f6b2b32a9d286327a.tar.gz nextcloud-server-fe46149560ede7a071557e4f6b2b32a9d286327a.zip |
Psalm fixes
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/public/IDBConnection.php')
-rw-r--r-- | lib/public/IDBConnection.php | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/lib/public/IDBConnection.php b/lib/public/IDBConnection.php index 68d0048433c..8e20b5503ba 100644 --- a/lib/public/IDBConnection.php +++ b/lib/public/IDBConnection.php @@ -77,13 +77,13 @@ interface IDBConnection { * If the query is parameterized, a prepared statement is used. * If an SQLLogger is configured, the execution is logged. * - * @param string $query The SQL query to execute. + * @param string $sql The SQL query to execute. * @param string[] $params The parameters to bind to the query, if any. * @param array $types The types the previous parameters are in. * @return \Doctrine\DBAL\Driver\Statement The executed statement. * @since 8.0.0 */ - public function executeQuery($query, array $params = [], $types = []); + public function executeQuery($sql, array $params = [], $types = []); /** * Executes an SQL INSERT/UPDATE/DELETE query with the given parameters @@ -91,13 +91,29 @@ interface IDBConnection { * * This method supports PDO binding types as well as DBAL mapping types. * - * @param string $query The SQL query. + * @param string $sql The SQL query. * @param array $params The query parameters. * @param array $types The parameter types. * @return integer The number of affected rows. * @since 8.0.0 + * + * @deprecated 21.0.0 use executeStatement + */ + public function executeUpdate($sql, array $params = [], array $types = []); + + /** + * Executes an SQL INSERT/UPDATE/DELETE query with the given parameters + * and returns the number of affected rows. + * + * This method supports PDO binding types as well as DBAL mapping types. + * + * @param string $sql The SQL query. + * @param array $params The query parameters. + * @param array $types The parameter types. + * @return integer The number of affected rows. + * @since 21.0.0 */ - public function executeUpdate($query, array $params = [], array $types = []); + public function executeStatement($sql, array $params = [], array $types = []); /** * Used to get the id of the just inserted element |