summaryrefslogtreecommitdiffstats
path: root/lib/private/DB
diff options
context:
space:
mode:
authorVitor Mattos <vitor@php.rio>2022-01-11 12:20:13 -0300
committerVitor Mattos <vitor@php.rio>2022-01-21 08:37:06 -0300
commitafe5b6dd8aa9a0eb761434231327e8daecb1d79e (patch)
treee3792c47644857a894e3451ef493ec6184b19db6 /lib/private/DB
parenta7c0868a4cc7a0f041484800ad56901f11086459 (diff)
downloadnextcloud-server-afe5b6dd8aa9a0eb761434231327e8daecb1d79e.tar.gz
nextcloud-server-afe5b6dd8aa9a0eb761434231327e8daecb1d79e.zip
Prevent query error when use subquery
Signed-off-by: Vitor Mattos <vitor@php.rio>
Diffstat (limited to 'lib/private/DB')
-rw-r--r--lib/private/DB/QueryBuilder/QueryBuilder.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/DB/QueryBuilder/QueryBuilder.php b/lib/private/DB/QueryBuilder/QueryBuilder.php
index a362ff8016e..de326a2a317 100644
--- a/lib/private/DB/QueryBuilder/QueryBuilder.php
+++ b/lib/private/DB/QueryBuilder/QueryBuilder.php
@@ -694,7 +694,7 @@ class QueryBuilder implements IQueryBuilder {
* ->from('users', 'u')
* </code>
*
- * @param string $from The table.
+ * @param string|IQueryFunction $from The table.
* @param string|null $alias The alias of the table.
*
* @return $this This QueryBuilder instance.
@@ -1303,7 +1303,7 @@ class QueryBuilder implements IQueryBuilder {
/**
* Returns the table name quoted and with database prefix as needed by the implementation
*
- * @param string $table
+ * @param string|IQueryFunction $table
* @return string
*/
public function getTableName($table) {