diff options
author | Robin Appelman <robin@icewind.nl> | 2021-02-26 20:22:08 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2021-03-03 10:43:15 +0100 |
commit | 47dd8e54b5d05d44596daccd64d50b645e275b19 (patch) | |
tree | 7fd1d6c842d15b10dfa25703899873a925ed93f8 /lib/private/DB | |
parent | 49c46493d1c4fab800bcb26e63bc979907cd20f7 (diff) | |
download | nextcloud-server-47dd8e54b5d05d44596daccd64d50b645e275b19.tar.gz nextcloud-server-47dd8e54b5d05d44596daccd64d50b645e275b19.zip |
allow non string join conditions in query builder
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/DB')
-rw-r--r-- | lib/private/DB/QueryBuilder/QueryBuilder.php | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/private/DB/QueryBuilder/QueryBuilder.php b/lib/private/DB/QueryBuilder/QueryBuilder.php index fb28fa28649..aa0327e89d9 100644 --- a/lib/private/DB/QueryBuilder/QueryBuilder.php +++ b/lib/private/DB/QueryBuilder/QueryBuilder.php @@ -48,6 +48,7 @@ use OC\DB\QueryBuilder\FunctionBuilder\SqliteFunctionBuilder; use OC\DB\ResultAdapter; use OC\SystemConfig; use OCP\DB\IResult; +use OCP\DB\QueryBuilder\ICompositeExpression; use OCP\DB\QueryBuilder\ILiteral; use OCP\DB\QueryBuilder\IParameter; use OCP\DB\QueryBuilder\IQueryBuilder; @@ -282,7 +283,7 @@ class QueryBuilder implements IQueryBuilder { 'app' => 'core', ]); } - + $result = $this->queryBuilder->execute(); if (is_int($result)) { return $result; @@ -664,7 +665,7 @@ class QueryBuilder implements IQueryBuilder { * @param string $fromAlias The alias that points to a from clause. * @param string $join The table name to join. * @param string $alias The alias of the join table. - * @param string $condition The condition for the join. + * @param string|ICompositeExpression|null $condition The condition for the join. * * @return $this This QueryBuilder instance. */ @@ -692,7 +693,7 @@ class QueryBuilder implements IQueryBuilder { * @param string $fromAlias The alias that points to a from clause. * @param string $join The table name to join. * @param string $alias The alias of the join table. - * @param string $condition The condition for the join. + * @param string|ICompositeExpression|null $condition The condition for the join. * * @return $this This QueryBuilder instance. */ @@ -720,7 +721,7 @@ class QueryBuilder implements IQueryBuilder { * @param string $fromAlias The alias that points to a from clause. * @param string $join The table name to join. * @param string $alias The alias of the join table. - * @param string $condition The condition for the join. + * @param string|ICompositeExpression|null $condition The condition for the join. * * @return $this This QueryBuilder instance. */ @@ -748,7 +749,7 @@ class QueryBuilder implements IQueryBuilder { * @param string $fromAlias The alias that points to a from clause. * @param string $join The table name to join. * @param string $alias The alias of the join table. - * @param string $condition The condition for the join. + * @param string|ICompositeExpression|null $condition The condition for the join. * * @return $this This QueryBuilder instance. */ |