Merge pull request #25816 from nextcloud/iquerybuilder-join-conditions
allow non string join conditions in query builder
This commit is contained in:
commit
11858a3d66
|
@ -48,6 +48,7 @@ use OC\DB\QueryBuilder\FunctionBuilder\SqliteFunctionBuilder;
|
||||||
use OC\DB\ResultAdapter;
|
use OC\DB\ResultAdapter;
|
||||||
use OC\SystemConfig;
|
use OC\SystemConfig;
|
||||||
use OCP\DB\IResult;
|
use OCP\DB\IResult;
|
||||||
|
use OCP\DB\QueryBuilder\ICompositeExpression;
|
||||||
use OCP\DB\QueryBuilder\ILiteral;
|
use OCP\DB\QueryBuilder\ILiteral;
|
||||||
use OCP\DB\QueryBuilder\IParameter;
|
use OCP\DB\QueryBuilder\IParameter;
|
||||||
use OCP\DB\QueryBuilder\IQueryBuilder;
|
use OCP\DB\QueryBuilder\IQueryBuilder;
|
||||||
|
@ -664,7 +665,7 @@ class QueryBuilder implements IQueryBuilder {
|
||||||
* @param string $fromAlias The alias that points to a from clause.
|
* @param string $fromAlias The alias that points to a from clause.
|
||||||
* @param string $join The table name to join.
|
* @param string $join The table name to join.
|
||||||
* @param string $alias The alias of the join table.
|
* @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.
|
* @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 $fromAlias The alias that points to a from clause.
|
||||||
* @param string $join The table name to join.
|
* @param string $join The table name to join.
|
||||||
* @param string $alias The alias of the join table.
|
* @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.
|
* @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 $fromAlias The alias that points to a from clause.
|
||||||
* @param string $join The table name to join.
|
* @param string $join The table name to join.
|
||||||
* @param string $alias The alias of the join table.
|
* @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.
|
* @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 $fromAlias The alias that points to a from clause.
|
||||||
* @param string $join The table name to join.
|
* @param string $join The table name to join.
|
||||||
* @param string $alias The alias of the join table.
|
* @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.
|
* @return $this This QueryBuilder instance.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -471,7 +471,7 @@ interface IQueryBuilder {
|
||||||
* @param string $fromAlias The alias that points to a from clause.
|
* @param string $fromAlias The alias that points to a from clause.
|
||||||
* @param string $join The table name to join.
|
* @param string $join The table name to join.
|
||||||
* @param string $alias The alias of the join table.
|
* @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.
|
* @return $this This QueryBuilder instance.
|
||||||
* @since 8.2.0
|
* @since 8.2.0
|
||||||
|
@ -496,7 +496,7 @@ interface IQueryBuilder {
|
||||||
* @param string $fromAlias The alias that points to a from clause.
|
* @param string $fromAlias The alias that points to a from clause.
|
||||||
* @param string $join The table name to join.
|
* @param string $join The table name to join.
|
||||||
* @param string $alias The alias of the join table.
|
* @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.
|
* @return $this This QueryBuilder instance.
|
||||||
* @since 8.2.0
|
* @since 8.2.0
|
||||||
|
@ -521,7 +521,7 @@ interface IQueryBuilder {
|
||||||
* @param string $fromAlias The alias that points to a from clause.
|
* @param string $fromAlias The alias that points to a from clause.
|
||||||
* @param string $join The table name to join.
|
* @param string $join The table name to join.
|
||||||
* @param string $alias The alias of the join table.
|
* @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.
|
* @return $this This QueryBuilder instance.
|
||||||
* @since 8.2.0
|
* @since 8.2.0
|
||||||
|
@ -546,7 +546,7 @@ interface IQueryBuilder {
|
||||||
* @param string $fromAlias The alias that points to a from clause.
|
* @param string $fromAlias The alias that points to a from clause.
|
||||||
* @param string $join The table name to join.
|
* @param string $join The table name to join.
|
||||||
* @param string $alias The alias of the join table.
|
* @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.
|
* @return $this This QueryBuilder instance.
|
||||||
* @since 8.2.0
|
* @since 8.2.0
|
||||||
|
|
Loading…
Reference in New Issue