Skip to content

Commit

Permalink
Update Statement.php
Browse files Browse the repository at this point in the history
  • Loading branch information
robsontenorio authored Dec 4, 2024
1 parent d21ffe5 commit e0d7ec8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Pdo/Cache/Statement.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ public function __construct(Cache $connection, $dbh, $statement, array $options
$this->throwException();
}

if (\strtolower(\get_resource_type($this->statement)) !== 'odbc result') {
throw new CacheException(
'Resource expected of type odbc result; '
.(string) \get_resource_type($this->statement).' received instead.'
);
}
// if (\strtolower(\get_resource_type($this->statement)) !== 'odbc result') {
// throw new CacheException(
// 'Resource expected of type odbc result; '
// .(string) \get_resource_type($this->statement).' received instead.'
// );
// }

$fetchMode = $connection->getAttribute(PDO::ATTR_DEFAULT_FETCH_MODE);

Expand Down

0 comments on commit e0d7ec8

Please sign in to comment.