diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2023-11-13 13:11:26 +0100 |
---|---|---|
committer | Daniel <mail@danielkesselberg.de> | 2023-11-13 14:47:47 +0100 |
commit | 93505b2cdd62fe60a09ea35164014a914627394e (patch) | |
tree | 807e7abb81eee9349b6a127803ec9500fc8a2fb5 /lib/private/DB/QueryBuilder | |
parent | 0f694bec82907894300ebca76ec335374196f6e0 (diff) | |
download | nextcloud-server-93505b2cdd62fe60a09ea35164014a914627394e.tar.gz nextcloud-server-93505b2cdd62fe60a09ea35164014a914627394e.zip |
fix(workflowengine): use andWhere() not second where()
- an unconditional where() condition is added right before
- fixes also wrongly named methods in the Exception message
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'lib/private/DB/QueryBuilder')
-rw-r--r-- | lib/private/DB/QueryBuilder/QueryBuilder.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/DB/QueryBuilder/QueryBuilder.php b/lib/private/DB/QueryBuilder/QueryBuilder.php index 30dc02b0c16..c2818911ccf 100644 --- a/lib/private/DB/QueryBuilder/QueryBuilder.php +++ b/lib/private/DB/QueryBuilder/QueryBuilder.php @@ -866,7 +866,7 @@ class QueryBuilder implements IQueryBuilder { public function where(...$predicates) { if ($this->getQueryPart('where') !== null && $this->systemConfig->getValue('debug', false)) { // Only logging a warning, not throwing for now. - $e = new QueryException('Using where() on non-empty WHERE part, please verify it is intentional to not call whereAnd() or whereOr() instead. Otherwise consider creating a new query builder object or call resetQueryPart(\'where\') first.'); + $e = new QueryException('Using where() on non-empty WHERE part, please verify it is intentional to not call andWhere() or orWhere() instead. Otherwise consider creating a new query builder object or call resetQueryPart(\'where\') first.'); $this->logger->warning($e->getMessage(), ['exception' => $e]); } |