Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
 private function degbugLog()
 {
     if ($this->isDebug) {
         sqlDebugLog($this->lastSql, $this->error);
         if (!empty($this->error)) {
             throw new \Exception('查询语句:' . $this->lastSql . '     错误提示:' . $this->error);
         }
     }
 }