public function getMultiLength($multiSqlStmt, $fieldsName) { \System\database\MultiBaseTable::setMultiSqlStmt($multiSqlStmt); $length = \System\database\MultiBaseTable::getMultiListLength($fieldsName); if (\System\Entrance::config('IS_DB_DEBUG') == true) { sqlDebugLog(\System\database\MultiBaseTable::$lastSql, \System\database\MultiBaseTable::$error); } return $length; }
private function degbugLog() { if ($this->isDebug) { sqlDebugLog($this->lastSql, $this->error); if (!empty($this->error)) { throw new \Exception('查询语句:' . $this->lastSql . ' 错误提示:' . $this->error); } } }