Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/Database/Adapter/SQL.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
use Utopia\Database\Document;
use Utopia\Database\Exception as DatabaseException;
use Utopia\Database\Exception\NotFound as NotFoundException;
use Utopia\Database\Exception\Query as QueryException;
use Utopia\Database\Exception\Transaction as TransactionException;
use Utopia\Database\PDO;
use Utopia\Database\Query;

abstract class SQL extends Adapter
Expand Down Expand Up @@ -1605,6 +1605,9 @@ public function getSQLConditions(array $queries, array &$binds, string $separato
{
$conditions = [];
foreach ($queries as $query) {
if (!$query instanceof Query) {
throw new QueryException('Invalid query type: "' . \gettype($query) . '". Expected instances of "' . Query::class . '"');
}

if ($query->getMethod() === Query::TYPE_SELECT) {
continue;
Expand Down