Skip to content

Commit

Permalink
set pdo error mode to error
Browse files Browse the repository at this point in the history
  • Loading branch information
hetao29 committed Mar 21, 2023
1 parent d4143b0 commit 6c1841d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/db/DbPDO.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ public function connect(){
\PDO::ATTR_PERSISTENT => $this->_persistent,
\PDO::ATTR_STRINGIFY_FETCHES => false,
\PDO::ATTR_EMULATE_PREPARES => false,
\PDO::ATTR_ERRMODE => \PDO::ERRMODE_WARNING,
\PDO::MYSQL_ATTR_USE_BUFFERED_QUERY => true,
);
if(!empty($this->_charset)){
Expand Down

0 comments on commit 6c1841d

Please sign in to comment.