aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2020-10-31 08:47:18 +0100
committerGitHub <noreply@github.com>2020-10-31 08:47:18 +0100
commit5396e98d2d9499f14a1c5abeb71e904642f90c26 (patch)
tree7f4de3c7d3c873f318252eb03817eedfdc7f109c /lib/public
parente8f0eb42e2334c8e2f6a4dfe6697221be002894f (diff)
parentfe46149560ede7a071557e4f6b2b32a9d286327a (diff)
downloadnextcloud-server-5396e98d2d9499f14a1c5abeb71e904642f90c26.tar.gz
nextcloud-server-5396e98d2d9499f14a1c5abeb71e904642f90c26.zip
Merge pull request #23764 from nextcloud/3rdparty/doctrine/dbal/2.12.0
[3rdparty] Bump doctrine/dbal to 2.12.0
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/DB/QueryBuilder/IQueryBuilder.php2
-rw-r--r--lib/public/IDBConnection.php24
2 files changed, 21 insertions, 5 deletions
diff --git a/lib/public/DB/QueryBuilder/IQueryBuilder.php b/lib/public/DB/QueryBuilder/IQueryBuilder.php
index 174ab1cc90c..1cffaafaf96 100644
--- a/lib/public/DB/QueryBuilder/IQueryBuilder.php
+++ b/lib/public/DB/QueryBuilder/IQueryBuilder.php
@@ -278,7 +278,7 @@ interface IQueryBuilder {
* Gets the maximum number of results the query object was set to retrieve (the "limit").
* Returns NULL if {@link setMaxResults} was not applied to this query builder.
*
- * @return integer The maximum number of results.
+ * @return int|null The maximum number of results.
* @since 8.2.0
*/
public function getMaxResults();
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