Skip to content

Commit e4f6693

Browse files
committed
Use abstract $this->execute($stmt);
1 parent 41440ae commit e4f6693

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Database/Adapter/SQL.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2464,7 +2464,7 @@ public function find(Document $collection, array $queries = [], ?int $limit = 25
24642464
}
24652465
}
24662466

2467-
$stmt->execute();
2467+
$this->execute($stmt);
24682468
} catch (PDOException $e) {
24692469
throw $this->processException($e);
24702470
}
@@ -2571,7 +2571,7 @@ public function count(Document $collection, array $queries = [], ?int $max = nul
25712571
$stmt->bindValue($key, $value, $this->getPDOType($value));
25722572
}
25732573

2574-
$stmt->execute();
2574+
$this->execute($stmt);
25752575

25762576
$result = $stmt->fetchAll();
25772577
$stmt->closeCursor();
@@ -2646,7 +2646,7 @@ public function sum(Document $collection, string $attribute, array $queries = []
26462646
$stmt->bindValue($key, $value, $this->getPDOType($value));
26472647
}
26482648

2649-
$stmt->execute();
2649+
$this->execute($stmt);
26502650

26512651
$result = $stmt->fetchAll();
26522652
$stmt->closeCursor();

0 commit comments

Comments
 (0)