* [refac] fix apache process exiting caused by pdo error.

This commit is contained in:
liugang
2024-10-11 16:06:02 +08:00
committed by 朱金勇
parent 94707cee10
commit fdd857aa97
+1 -3
View File
@@ -921,8 +921,6 @@ class baseDAO
*/
public function query($sql = '')
{
if(!empty(dao::$errors)) return $this;
if($sql)
{
$sql = $this->dbh->formatSQL($sql);
@@ -1030,7 +1028,7 @@ class baseDAO
*/
public function exec($sql = '')
{
if(!empty(dao::$errors)) return $this;
if(!empty(dao::$errors)) return 0;
if($sql)
{