$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 `sort` ASC LIMIT 1' 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 `sort` ASC LIMIT 1' at line 1 |
Error SQL | SELECT * FROM `category` WHERE ( id = ) ORDER BY `sort` ASC LIMIT 1 |
type | mysql |
hostname | 127.0.0.1 |
database | hedian |
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 | [] |
item | news |
category_id | 7 |
member_id | 32 |
USER | www |
HOME | /home/www |
SCRIPT_NAME | /index.php |
REQUEST_URI | /company/index.php?item=news&category_id=7&member_id=32 |
QUERY_STRING | s=/company/index.php&item=news&category_id=7&member_id=32 |
REQUEST_METHOD | GET |
SERVER_PROTOCOL | HTTP/1.1 |
GATEWAY_INTERFACE | CGI/1.1 |
REDIRECT_QUERY_STRING | s=/company/index.php&item=news&category_id=7&member_id=32 |
REDIRECT_URL | /company/index.php |
REMOTE_PORT | 33302 |
SCRIPT_FILENAME | /www/wwwroot/heneng.org.cn/public/index.php |
SERVER_ADMIN | webmaster@example.com |
CONTEXT_DOCUMENT_ROOT | /www/wwwroot/heneng.org.cn/public |
CONTEXT_PREFIX | |
REQUEST_SCHEME | http |
DOCUMENT_ROOT | /www/wwwroot/heneng.org.cn/public |
REMOTE_ADDR | 3.236.111.234 |
SERVER_PORT | 80 |
SERVER_ADDR | 172.31.100.215 |
SERVER_NAME | www.heneng.net.cn |
SERVER_SOFTWARE | Apache |
SERVER_SIGNATURE | <address>Apache Server at www.heneng.net.cn Port 80</address> |
LD_LIBRARY_PATH | /www/server/apache/lib |
PATH | /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin |
HTTP_HOST | www.heneng.net.cn |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
proxy-nokeepalive | 1 |
REDIRECT_STATUS | 200 |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1710832831.5231 |
REQUEST_TIME | 1710832831 |
MAX_MENU_LENGTH | 3 |
MAX_SUB_MENU_LENGTH | 5 |
MODULE_NAME | index.php |
ACTION_NAME | index |
DBNAME | |
ISPAGE | 1 |