[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_2609755_' => ['76', 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('76')
  8. at ReflectionMethod->invokeArgs(object(About), ['76']) in Container.php line 395
  9. at Container->invokeReflectMethod(object(About), object(ReflectionMethod), ['76', '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` = 76
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_ACCEPT_ENCODING
deflate, gzip
HTTP_ACCEPT
*/*
HTTP_HOST
www.dalishu.cn
HTTP_USER_AGENT
Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)
PATH_INFO
REDIRECT_STATUS
200
SERVER_NAME
dls.024wl.com
SERVER_PORT
80
SERVER_ADDR
219.234.1.7
REMOTE_PORT
20000
REMOTE_ADDR
154.212.205.72
SERVER_SOFTWARE
nginx/1.16.0
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/www/wwwroot/dls.024wl.com/public
DOCUMENT_URI
/index.php
REQUEST_URI
/study/76.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/study/76.html
SCRIPT_FILENAME
/www/wwwroot/dls.024wl.com/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1627539187.8185
REQUEST_TIME
1627539187
Environment Variablesempty
ThinkPHP Constants
QINIU_FUNCTIONS_VERSION
7.2.10