From 3229dc1108c1fb987501a20b1a2b56ceb7e46fc8 Mon Sep 17 00:00:00 2001 From: flashwave Date: Fri, 24 Apr 2015 17:59:56 +0000 Subject: [PATCH] quick update to sql lib --- _sakura/components/database/mysql.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_sakura/components/database/mysql.php b/_sakura/components/database/mysql.php index f30041e..f2ff765 100644 --- a/_sakura/components/database/mysql.php +++ b/_sakura/components/database/mysql.php @@ -71,7 +71,7 @@ class Database { try { // Connect to SQL server using PDO - self::$sql = new PDO($DSN, $dbUname, $dbPword); + self::$sql = new PDO($DSN, $dbUname, $dbPword, array(PDO::ATTR_ERRMODE => PDO::ERRMODE_WARNING)); } catch(PDOException $e) { // Catch connection errors trigger_error('SQL Driver: '. $e->getMessage(), E_USER_ERROR);