Skip to content

Commit 6c1841d

Browse files
committed
set pdo error mode to error
1 parent d4143b0 commit 6c1841d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

plugins/db/DbPDO.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ public function connect(){
6767
\PDO::ATTR_PERSISTENT => $this->_persistent,
6868
\PDO::ATTR_STRINGIFY_FETCHES => false,
6969
\PDO::ATTR_EMULATE_PREPARES => false,
70+
\PDO::ATTR_ERRMODE => \PDO::ERRMODE_WARNING,
7071
\PDO::MYSQL_ATTR_USE_BUFFERED_QUERY => true,
7172
);
7273
if(!empty($this->_charset)){

0 commit comments

Comments
 (0)