diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2021-05-05 10:31:54 +0200 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2021-05-05 10:31:54 +0200 |
commit | 865661ed75a542245abcc6639adee769a13267d0 (patch) | |
tree | 588010f79c616584f265b063ce35d09b7d898eb6 /lib/public/DB/QueryBuilder/IQueryBuilder.php | |
parent | 6d3aef1849eb84d423be2a8789bb13f6ef5a26a3 (diff) | |
download | nextcloud-server-865661ed75a542245abcc6639adee769a13267d0.tar.gz nextcloud-server-865661ed75a542245abcc6639adee769a13267d0.zip |
Rename IQueryBuilder::executeUpdate to IQueryBuilder::executeStatement
Because executeUpdate wasn't a great name. And in DBAL they also use
executeStatement more consistently now.
Ref https://github.com/doctrine/dbal/issues/4607
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/public/DB/QueryBuilder/IQueryBuilder.php')
-rw-r--r-- | lib/public/DB/QueryBuilder/IQueryBuilder.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/public/DB/QueryBuilder/IQueryBuilder.php b/lib/public/DB/QueryBuilder/IQueryBuilder.php index a4f3f3b10b0..fa861ed6ee8 100644 --- a/lib/public/DB/QueryBuilder/IQueryBuilder.php +++ b/lib/public/DB/QueryBuilder/IQueryBuilder.php @@ -149,7 +149,7 @@ interface IQueryBuilder { /** * Executes this query using the bound parameters and their types. * - * Uses {@see Connection::executeQuery} for select statements and {@see Connection::executeUpdate} + * Uses {@see Connection::executeQuery} for select statements and {@see Connection::executeStatement} * for insert, update and delete statements. * * Warning: until Nextcloud 20, this method could return a \Doctrine\DBAL\Driver\Statement but since @@ -175,15 +175,15 @@ interface IQueryBuilder { public function executeQuery(): IResult; /** - * Execute for insert, update and delete statements + * Execute insert, update and delete statements * - * @return int + * @return int the number of affected rows * @since 22.0.0 * * @throws Exception * @throws \RuntimeException in case of usage with select query */ - public function executeUpdate(): int; + public function executeStatement(): int; /** * Gets the complete SQL string formed by the current specifications of this QueryBuilder. |