$this->debug(false, '', $master);
// 返回結果集
return $this->getResult($pdo, $procedure);
} catch (\PDOException $e) {
if ($this->isBreak($e)) {
return $this->close()->query($sql, $bind, $master, $pdo);
}
throw new PDOException($e, $this->config, $this->getLastsql());
} catch (\Throwable $e) {
if ($this->isBreak($e)) {
return $this->close()->query($sql, $bind, $master, $pdo);
}
throw $e;
} catch (\Exception $e) {
if ($this->isBreak($e)) {
return $this->close()->query($sql, $bind, $master, $pdo);
SQLSTATE | 42000 |
Driver Error Code | 1064 |
Driver Error Message | You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'index' at line 1 |
Error Code | 10501 |
Error Message | SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'index' at line 1 |
Error SQL | SELECT * from ( SELECT @rank:=@rank+1 as rank,a.* from (( SELECT * FROM `xzd_article` WHERE `valid` = 1 AND ( concat(',',site,',') REGEXP ',27,|,5,' ) ORDER BY sort asc,publish_time desc,id asc )) a,(SELECT @rank:=0) b) a where 1 and id=index |
type | mysql |
hostname | 127.0.0.1 |
database | xinzhidi_four_xi |
hostport | 3306 |
dsn | |
params | [] |
charset | utf8 |
prefix | |
debug | true |
deploy | 0 |
rw_separate | false |
master_num | 1 |
slave_no | |
read_master | false |
fields_strict | true |
resultset_type | array |
auto_timestamp | false |
datetime_format | Y-m-d H:i:s |
sql_explain | false |
builder | |
query | \think\db\Query |
break_reconnect | false |
break_match_str | [] |
xzd_redis_config | { "hostname": "127.0.0.1", "hostport": "6379", "password": false, "database": 0 } |
_c | 1 |
USER | www |
HOME | /home/www |
HTTP_ACCEPT | */* |
HTTP_HOST | www.xinzhidi.cn |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | xinzhidi.four.xinzhidi.cn |
SERVER_PORT | 80 |
SERVER_ADDR | 10.0.8.10 |
REMOTE_PORT | 60624 |
REMOTE_ADDR | 43.138.21.33 |
SERVER_SOFTWARE | nginx/1.22.1 |
GATEWAY_INTERFACE | CGI/1.1 |
REQUEST_SCHEME | http |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /www/wwwroot/xinzhidi.four.xinzhidi.cn/xinzhidi_web/public |
DOCUMENT_URI | index.html |
REQUEST_URI | /index/index/news_info/id/index?_c=1 |
SCRIPT_NAME | index.html |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/index/index/news_info/id/index&_c=1 |
SCRIPT_FILENAME | /www/wwwroot/xinzhidi.four.xinzhidi.cn/xinzhidi_web/publicindex.html |
FCGI_ROLE | RESPONDER |
PHP_SELF | index.html |
REQUEST_TIME_FLOAT | 1697135557.912 |
REQUEST_TIME | 1697135557 |