Showing
1 changed file
with
1 additions
and
1 deletions
@@ -380,7 +380,7 @@ abstract class Q_Db_Adapter_Pdo_Abstract | @@ -380,7 +380,7 @@ abstract class Q_Db_Adapter_Pdo_Abstract | ||
380 | // set the PDO connection to perform case-folding on array keys, or not | 380 | // set the PDO connection to perform case-folding on array keys, or not |
381 | $_connection->setAttribute(PDO::ATTR_CASE, $this->_caseFolding); | 381 | $_connection->setAttribute(PDO::ATTR_CASE, $this->_caseFolding); |
382 | // always use exceptions. | 382 | // always use exceptions. |
383 | - $_connection->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING);//PDO::ERRMODE_EXCEPTION); | 383 | + $_connection->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); |
384 | 384 | ||
385 | // 判断环境设置是否开启预处理 | 385 | // 判断环境设置是否开启预处理 |
386 | if (version_compare(phpversion(), '5.3.6', '<') == true) { | 386 | if (version_compare(phpversion(), '5.3.6', '<') == true) { |
-
Please register or login to post a comment