[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);
|
$dsn = sprintf('mysql:dbname=%s;host=%s', $db, $host);
|
||||||
|
|
||||||
$options=array(
|
$options=array(
|
||||||
\PDO::ATTR_ERRMODE => \PDO::ERRMODE_EXCEPTION
|
// \PDO::ATTR_ERRMODE => \PDO::ERRMODE_EXCEPTION
|
||||||
);
|
);
|
||||||
try {
|
try {
|
||||||
$this->pdo_instance = new PDO($dsn, $user, $passwd, $options);
|
$this->pdo_instance = new PDO($dsn, $user, $passwd, $options);
|
||||||
|
|
Loading…
Reference in New Issue