diff --git a/lib/base/dao/dao.class.php b/lib/base/dao/dao.class.php index be6e5d3749..4fa1e1efc0 100644 --- a/lib/base/dao/dao.class.php +++ b/lib/base/dao/dao.class.php @@ -1500,8 +1500,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) {