[fix] not throwing exception with db_mysql
This commit is contained in:
parent
a5bf37786c
commit
cdd0bfd0fa
|
@ -63,7 +63,7 @@ class DB_Sql {
|
|||
$dsn = sprintf('mysql:dbname=%s;host=%s', $db, $host);
|
||||
|
||||
$options=array(
|
||||
\PDO::ATTR_ERRMODE => \PDO::ERRMODE_EXCEPTION
|
||||
// \PDO::ATTR_ERRMODE => \PDO::ERRMODE_EXCEPTION
|
||||
);
|
||||
try {
|
||||
$this->pdo_instance = new PDO($dsn, $user, $passwd, $options);
|
||||
|
|
Loading…
Reference in New Issue