From b4ebe635e16739580025d970da575cbdbef24bf1 Mon Sep 17 00:00:00 2001 From: qixinzhi Date: Tue, 14 Nov 2023 16:55:31 +0800 Subject: [PATCH] * Add en comment. --- lib/base/dao/dao.class.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/base/dao/dao.class.php b/lib/base/dao/dao.class.php index 20c6c2091f..a7dc9b7648 100644 --- a/lib/base/dao/dao.class.php +++ b/lib/base/dao/dao.class.php @@ -1480,8 +1480,10 @@ class baseDAO $sql = $this->sqlobj->get(); $message .= "

The sql is: $sql

"; + /* * 如果开启了将sql错误作为异常抛出,那么拦截sql错误,不触发错误。 + * If throwing sql errors as exceptions is enabled, sql errors are intercepted and not triggered. */ if($this->app->throwError) {