Skip to content

Commit

Permalink
Add PDO attribute to disable stringifying fetches.
Browse files Browse the repository at this point in the history
  • Loading branch information
terabytesoftw committed Dec 18, 2023
1 parent 4f4e7a1 commit f4b448e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ final class Driver extends AbstractPdoDriver
public function createConnection(): PDO
{
$this->attributes += [PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION];
$this->attributes += [PDO::ATTR_STRINGIFY_FETCHES => false];

return parent::createConnection();
}

Expand Down

0 comments on commit f4b448e

Please sign in to comment.