Skip to content

Commit

Permalink
Call isBinary() only if parameter is a string
Browse files Browse the repository at this point in the history
  • Loading branch information
W0rma authored and sergeyklay committed Jan 12, 2024
1 parent b7c45db commit 5666795
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Codeception/Lib/Driver/Db.php
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ public function executeQuery($query, array $params): PDOStatement
$type = PDO::PARAM_BOOL;
} elseif (is_int($param)) {
$type = PDO::PARAM_INT;
} elseif ($this->isBinary($param)) {
} elseif (is_string($param) && $this->isBinary($param)) {
$type = PDO::PARAM_LOB;
} else {
$type = PDO::PARAM_STR;
Expand Down

0 comments on commit 5666795

Please sign in to comment.