澳门威斯尼斯人·(8040-VIP)官方网站-最新app下载安装

[10501] PDOException in Connection.php line 463

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 ')' at line 1

  1. $query->readMaster();
  2. }
  3. $this->numRows = $this->PDOStatement->rowCount();
  4. return $this->numRows;
  5. } catch (\PDOException $e) {
  6. if ($this->isBreak($e)) {
  7. return $this->close()->execute($sql, $bind, $query);
  8. }
  9. throw new PDOException($e, $this->config, $this->getLastsql());
  10. } catch (\Throwable $e) {
  11. if ($this->isBreak($e)) {
  12. return $this->close()->execute($sql, $bind, $query);
  13. }
  14. throw $e;
  15. } catch (\Exception $e) {
  16. if ($this->isBreak($e)) {
  17. return $this->close()->execute($sql, $bind, $query);
  18. }

Call Stack

  1. in Connection.php line 463
  2. at Connection->execute('UPDATE `client_artic...', [], object(Query)) in Query.php line 262
  3. at Query->execute('UPDATE `client_artic...', [], object(Query)) in Query.php line 2390
  4. at Query->update(['hits' => ['inc', 1]]) in Query.php line 604
  5. at Query->setField('hits', ['inc', 1]) in Query.php line 633
  6. at Query->setInc('hits') in Common.php line 390
  7. at Common->hits(null, 'client_article') in Article.php line 154
  8. at Article->detail()
  9. at ReflectionMethod->invokeArgs(object(Article), []) in App.php line 343
  10. at App::invokeMethod([object(Article), 'detail'], []) in App.php line 610
  11. at App::module(['home', 'Article', 'detail'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 456
  12. at App::exec(['type' => 'module', 'module' => ['home', 'Article', 'detail']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  13. at App::run() in start.php line 19
  14. at require('/www/wwwroot/www.gim...') in index.php line 18

Exception Datas

PDO Error Info
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 ')' at line 1
Database Status
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 ')' at line 1
Error SQL UPDATE `client_article` SET `hits`=`hits`+1 WHERE ( id= )
Database Config
type mysql
hostname 127.0.0.1
database www_gimech_com
hostport 3306
dsn
params []
charset utf8
prefix client_
debug true
deploy 0
rw_separate false
master_num 1
slave_no
read_master false
fields_strict true
result_type 2
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

Environment Variables

GET Data
empty
POST Data
empty
Files
empty

Cookies

think_var
en-us
PHPSESSID
s8ernf5avbmlcf282ainggn2d5
ipInfo
a:5:{s:2:"id";i:8741;s:8:"ip_start";s:9:"400916480";s:6:"ip_end";s:9:"401113087";s:12:"abbreviation";s:2:"US";s:7:"country";s:13:"United States";}
think_var1
en-us
first
1698125876
Session
empty

Server/Request Data

USER
www
HOME
/home/www
SCRIPT_NAME
/index.php
REQUEST_URI
/news/index.html
QUERY_STRING
s=/home/Article/detail/name/index
REQUEST_METHOD
GET
SERVER_PROTOCOL
HTTP/1.1
GATEWAY_INTERFACE
CGI/1.1
REDIRECT_QUERY_STRING
s=/home/Article/detail/name/index
REDIRECT_URL
/index.php/news/index.html
REMOTE_PORT
45326
SCRIPT_FILENAME
/www/wwwroot/www.gimech.com/index.php
SERVER_ADMIN
webmaster@example.com
CONTEXT_DOCUMENT_ROOT
/www/wwwroot/www.gimech.com/
CONTEXT_PREFIX
REQUEST_SCHEME
https
DOCUMENT_ROOT
/www/wwwroot/www.gimech.com/
REMOTE_ADDR
23.231.77.74
SERVER_PORT
443
SERVER_ADDR
172.19.168.8
SERVER_NAME
www.gimech.com
SERVER_SOFTWARE
Apache
SERVER_SIGNATURE
Apache Server at www.gimech.com Port 443
LD_LIBRARY_PATH
/www/server/apache/lib
PATH
/www/server/panel/pyenv/bin:/www/server/panel/pyenv/bin:/www/server/panel/pyenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
HTTP_COOKIE
think_var=en-us; PHPSESSID=s8ernf5avbmlcf282ainggn2d5; ipInfo=a%3A5%3A%7Bs%3A2%3A%22id%22%3Bi%3A8741%3Bs%3A8%3A%22ip_start%22%3Bs%3A9%3A%22400916480%22%3Bs%3A6%3A%22ip_end%22%3Bs%3A9%3A%22401113087%22%3Bs%3A12%3A%22abbreviation%22%3Bs%3A2%3A%22US%22%3Bs%3A7%3A%22country%22%3Bs%3A13%3A%22United+States%22%3B%7D; think_var1=en-us; first=1698125876
HTTP_ACCEPT_ENCODING
gzip
HTTP_ACCEPT
*/*
HTTP_HOST
www.gimech.com
HTTP_USER_AGENT
CCBot/2.0 (https://commoncrawl.org/faq/)
proxy-nokeepalive
1
SSL_TLS_SNI
www.gimech.com
HTTPS
on
SCRIPT_URI
/news/index.html
SCRIPT_URL
/news/index.html
REDIRECT_STATUS
200
REDIRECT_SSL_TLS_SNI
www.gimech.com
REDIRECT_HTTPS
on
REDIRECT_SCRIPT_URI
/news/index.html
REDIRECT_SCRIPT_URL
/news/index.html
REDIRECT_REDIRECT_STATUS
200
REDIRECT_REDIRECT_SSL_TLS_SNI
www.gimech.com
REDIRECT_REDIRECT_HTTPS
on
REDIRECT_REDIRECT_SCRIPT_URI
/news/index.html
REDIRECT_REDIRECT_SCRIPT_URL
/news/index.html
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1701874182.7079
REQUEST_TIME
1701874182
PATH_INFO
/home/Article/detail/name/index
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/www.gimech.com/application/
APP_DEBUG
true
THINK_VERSION
5.0.21
THINK_START_TIME
1701874182.7081
THINK_START_MEM
366000
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/www.gimech.com/thinkphp/
LIB_PATH
/www/wwwroot/www.gimech.com/thinkphp/library/
CORE_PATH
/www/wwwroot/www.gimech.com/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/www.gimech.com/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/www.gimech.com/
EXTEND_PATH
/www/wwwroot/www.gimech.com/extend/
VENDOR_PATH
/www/wwwroot/www.gimech.com/vendor/
RUNTIME_PATH
/www/wwwroot/www.gimech.com/runtime/
LOG_PATH
/www/wwwroot/www.gimech.com/runtime/log/
CACHE_PATH
/www/wwwroot/www.gimech.com/runtime/cache/
TEMP_PATH
/www/wwwroot/www.gimech.com/runtime/temp/
CONF_PATH
/www/wwwroot/www.gimech.com/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
XML 地图