Skip to content
This repository has been archived by the owner on May 11, 2021. It is now read-only.

Commit

Permalink
add resource support (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkSide666 committed Apr 17, 2018
1 parent d52b50a commit a5b6ee6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Expression.php
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,8 @@ public function execute($connection = null)
$type = \PDO::PARAM_NULL;
} elseif (is_string($val) || is_float($val)) {
$type = \PDO::PARAM_STR;
} elseif (is_resource($val)) {
$type = \PDO::PARAM_LOB;
} else {
throw new Exception([
'Incorrect param type',
Expand Down

0 comments on commit a5b6ee6

Please sign in to comment.