cc網投交流群

[10501] PDOException in Connection.php line 456

SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'url' at row 1

  1. // 調試結束
  2. $this->debug(false);
  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);
  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);
  13. }
  14. throw $e;
  15. } catch (\Exception $e) {
  16. if ($this->isBreak($e)) {
  17. return $this->close()->execute($sql, $bind);
  18. }

Call Stack

  1. in Connection.php line 456
  2. at Connection->execute('INSERT INTO `cydl_co...', ['data__name' => ['Baidu', 2], 'data__time' => [1587970116, 1], 'data__user' => ['Mozilla/5.0 (compati...', 2], ...]) in Query.php line 241
  3. at Query->execute('INSERT INTO `cydl_co...', ['data__name' => ['Baidu', 2], 'data__time' => [1587970116, 1], 'data__user' => ['Mozilla/5.0 (compati...', 2], ...]) in Query.php line 2103
  4. at Query->insert(['name' => 'Baidu', 'time' => 1587970116, 'user' => 'Mozilla/5.0 (compati...', ...]) in Home.php line 121
  5. at Home->baiduspider() in Home.php line 75
  6. at Home->__construct() in Product.php line 6
  7. at Product->__construct()
  8. at ReflectionClass->newInstanceArgs([]) in App.php line 359
  9. at App::invokeClass('app\home\controller\...') in Loader.php line 459
  10. at Loader::controller('product', 'controller', false, 'Error') in App.php line 581
  11. at App::module(['home', 'product', 'productshow'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], null) in App.php line 457
  12. at App::exec(['type' => 'module', 'module' => ['home', 'product', 'productshow']], ['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('/alidata/www/maxcom/...') in index.php line 30

Exception Datas

PDO Error Info
SQLSTATE 22001
Driver Error Code 1406
Driver Error Message Data too long for column 'url' at row 1
Database Status
Error Code 10501
Error Message SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'url' at row 1
Error SQL INSERT INTO `cydl_coogle_log` (`name` , `time` , `user` , `url`) VALUES ('Baidu' , 1587970116 , 'Mozilla/5.0 (compatible; Baiduspider/2.0; +http://www.www.tlnpd.cn/search/spider.html)' , '/home-product-productshow-id-1606.html')
Database Config
type mysql
hostname 127.0.0.1
database maxcom
hostport 3306
dsn
params [ ]
charset utf8
prefix cydl_
debug true
deploy 0
rw_separate false
master_num 1
slave_no
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
empty

Session

xianyu
{ "lang": "zh-cn" }

Server/Request Data

USER
www
HOME
/alidata/www
FCGI_ROLE
RESPONDER
SCRIPT_FILENAME
/alidata/www/maxcom/public/index.php
QUERY_STRING
s=/home-product-productshow-id-1606.html
REQUEST_METHOD
GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME
/index.php
REQUEST_URI
//home-product-productshow-id-1606.html
DOCUMENT_URI
/index.php
DOCUMENT_ROOT
/alidata/www/maxcom/public
SERVER_PROTOCOL
HTTP/1.1
GATEWAY_INTERFACE
CGI/1.1
SERVER_SOFTWARE
nginx/1.4.7
REMOTE_ADDR
193.108.46.234
REMOTE_PORT
51759
SERVER_ADDR
172.18.63.158
SERVER_PORT
80
SERVER_NAME
tlnpd.cn
REDIRECT_STATUS
200
HTTP_HOST
tlnpd.cn
HTTP_USER_AGENT
Mozilla/5.0 (compatible; Baiduspider/2.0; +http://www.www.tlnpd.cn/search/spider.html)
HTTP_ACCEPT
*/*
HTTP_ACCEPT_ENCODING
gzip
HTTP_REFERER
HTTP_CLIENT_IP
115.239.210.25
HTTP_X_FORWARDED_FOR
115.239.210.25
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1587970116.5275
REQUEST_TIME
1587970116
PATH_INFO
/home-product-productshow-id-1606.html
ALL_HTTP
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/alidata/www/maxcom/public/../application/
CONF_PATH
/alidata/www/maxcom/public/../config/
THINK_VERSION
5.0.14
THINK_START_TIME
1587970116.528
THINK_START_MEM
263080
EXT
.php
DS
/
THINK_PATH
/alidata/www/maxcom/thinkphp/
LIB_PATH
/alidata/www/maxcom/thinkphp/library/
CORE_PATH
/alidata/www/maxcom/thinkphp/library/think/
TRAIT_PATH
/alidata/www/maxcom/thinkphp/library/traits/
ROOT_PATH
/alidata/www/maxcom/
EXTEND_PATH
/alidata/www/maxcom/extend/
VENDOR_PATH
/alidata/www/maxcom/vendor/
RUNTIME_PATH
/alidata/www/maxcom/runtime/
LOG_PATH
/alidata/www/maxcom/runtime/log/
CACHE_PATH
/alidata/www/maxcom/runtime/cache/
TEMP_PATH
/alidata/www/maxcom/runtime/temp/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
088彩票網址_088彩票注冊官網_088彩票平台|6617彩票注冊網址_6617彩票客戶端網址|66彩票網_66彩票邀請碼_66彩票平台|6762彩票注冊網址_6762彩票客戶端網址|678彩票平台_678彩票網站_678彩票官網|6號彩票舊版_6號彩票ios下載_6號彩票官網| |