[10501] PDOException in Connection.php line 764

SQLSTATE[22003]: Numeric value out of range: 1264 Out of range value for column 'views' at row 1

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

Call Stack

  1. in Connection.php line 764
  2. at Connection->execute('UPDATE `cms_certific...', ['ThinkBind_1_1514976010_' => ['86', 1]], object(Query)) in Connection.php line 1157
  3. at Connection->update(object(Query)) in Query.php line 2923
  4. at Query->update(['views' => ['INC', 1]]) in Query.php line 746
  5. at Query->setField('views', ['INC', 1]) in Query.php line 779
  6. at Query->setInc('views') in About.php line 96
  7. at About->detail('86')
  8. at ReflectionMethod->invokeArgs(object(About), ['86']) in Container.php line 395
  9. at Container->invokeReflectMethod(object(About), object(ReflectionMethod), ['86', 'convert' => false]) in Module.php line 131
  10. at Module->think\route\dispatch\{closure}(object(Request), object(Closure), null)
  11. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  12. at Middleware->think\{closure}(object(Request))
  13. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  14. at Middleware->dispatch(object(Request), 'controller') in Module.php line 136
  15. at Module->exec() in Dispatch.php line 168
  16. at Dispatch->run() in App.php line 432
  17. at App->think\{closure}(object(Request), object(Closure), null)
  18. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  19. at Middleware->think\{closure}(object(Request)) in sys.php line 145
  20. at {closure}(object(Request), object(Closure), null)
  21. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  22. at Middleware->think\{closure}(object(Request)) in common.php line 247
  23. at {closure}(object(Request), object(Closure), null)
  24. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  25. at Middleware->think\{closure}(object(Request))
  26. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  27. at Middleware->dispatch(object(Request)) in App.php line 435
  28. at App->run() in index.php line 20

Exception Datas

PDO Error Info
SQLSTATE 22003
Driver Error Code 1264
Driver Error Message Out of range value for column 'views' at row 1
Database Status
Error Code 10501
Error Message SQLSTATE[22003]: Numeric value out of range: 1264 Out of range value for column 'views' at row 1
Error SQL UPDATE `cms_certificate` SET `views` = `views` + 1 WHERE `id` = 86
Database Config
type mysql
hostname 127.0.0.1
database dls_024wl_com
hostport 3306
dsn
params []
charset utf8mb4
prefix
debug false
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 []

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_REFERER http://dalishu.cn/study/86.html
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
HTTP_HOST www.dalishu.cn
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME dalishu.cn
SERVER_PORT 443
SERVER_ADDR 122.114.59.169
REMOTE_PORT 41404
REMOTE_ADDR 54.221.43.155
SERVER_SOFTWARE nginx/1.16.0
GATEWAY_INTERFACE CGI/1.1
HTTPS on
REQUEST_SCHEME https
SERVER_PROTOCOL HTTP/2.0
DOCUMENT_ROOT /www/wwwroot/dls.024wl.com/public
DOCUMENT_URI /index.php
REQUEST_URI /study/86.html
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/study/86.html
SCRIPT_FILENAME /www/wwwroot/dls.024wl.com/public/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711630655.4503
REQUEST_TIME 1711630655
Environment Variablesempty
ThinkPHP Constants
QINIU_FUNCTIONS_VERSION 7.2.10