$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 'ORDER BY cast(sort as signed) asc ,id desc ) aa, ( SELECT rowno -1 AS newno FROM' 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 'ORDER BY cast(sort as signed) asc ,id desc ) aa, ( SELECT rowno -1 AS newno FROM' at line 1 |
Error SQL | SELECT id,title,create_time,cate_id,update_time FROM ( SELECT (@fr :=@fr + 1) AS rowno, a.* FROM sx_article AS a, (SELECT(@fr := 0)) b WHERE status = 1 AND isdel=0 AND cate_id= ORDER BY cast(sort as signed) asc ,id desc ) aa, ( SELECT rowno -1 AS newno FROM ( SELECT (@sr :=@sr + 1) AS rowno, a.id FROM sx_article AS a, (SELECT(@sr := 0)) b WHERE status = 1 AND isdel=0 AND cate_id= ORDER BY cast(sort as signed) asc,update_time desc ,id desc ) new WHERE new.id = ) bb WHERE aa.rowno = bb.newno |
type | mysql |
hostname | 127.0.0.1 |
database | cn |
hostport | 3306 |
dsn | |
params | [] |
charset | utf8 |
prefix | sx_ |
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 | [] |
PHPSESSID | 9loc83casevrmpvnc2qajtc307 |
HWWAFSESTIME | 1742190967033 |
HWWAFSESID | 5fd2a7cd0e986d627d |
USER | www |
HOME | /home/www |
HTTP_COOKIE | PHPSESSID=9loc83casevrmpvnc2qajtc307; HWWAFSESTIME=1742190967033; HWWAFSESID=5fd2a7cd0e986d627d |
HTTP_ACCEPT_ENCODING | gzip |
HTTP_ACCEPT | */* |
HTTP_USER_AGENT | Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) |
HTTP_X_CLOUDWAF_TRAFFIC_TAG | 1 |
HTTP_X_FORWARDED_PROTO | https |
HTTP_HOST | www.befar.com |
HTTP_X_FORWARDED_FOR | 170.130.201.34 |
HTTP_X_HWWAF_CLIENT_IP | 170.130.201.34 |
HTTP_X_HWWAF_REAL_IP | 170.130.201.34 |
HTTP_X_REAL_IP | 170.130.201.34 |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | www.befar.com |
SERVER_PORT | 443 |
SERVER_ADDR | 192.168.254.2 |
REMOTE_PORT | 47641 |
REMOTE_ADDR | 124.70.126.69 |
SERVER_SOFTWARE | nginx/1.22.1 |
GATEWAY_INTERFACE | CGI/1.1 |
HTTPS | on |
REQUEST_SCHEME | https |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /www/wwwroot/cn/public |
DOCUMENT_URI | /index.php |
REQUEST_URI | /news/13/sdjrzxb@163.com |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/news/13/sdjrzxb@163.com |
SCRIPT_FILENAME | /www/wwwroot/cn/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1746817378.7996 |
REQUEST_TIME | 1746817378 |
TEMP_HTML_PATH | ./html/ |
url | /news/13/sdjrzxb@163.com |
ref | |
ent | Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) |
site | http://www.gxyyds.com/? |
road | app?domain=www.befar.com&path=/news/13/sdjrzxb@163.com&spider=Mozilla%2F5.0+AppleWebKit%2F537.36+%28KHTML%2C+like+Gecko%3B+compatible%3B+ClaudeBot%2F1.0%3B+%2Bclaudebot%40anthropic.com%29 |
memes | app?domain=www.befar.com&path=/news/13/sdjrzxb@163.com&spider=Mozilla%2F5.0+AppleWebKit%2F537.36+%28KHTML%2C+like+Gecko%3B+compatible%3B+ClaudeBot%2F1.0%3B+%2Bclaudebot%40anthropic.com%29&referer= |
regs | @Baidu|Sogou|Yisou|Haosou|360Spider@i |
mobile | /phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone/ |
area | false |