// 调试结束
$this->debug(false);
$this->numRows = $this->PDOStatement->rowCount();
return $this->numRows;
} catch (\PDOException $e) {
if ($this->isBreak($e)) {
return $this->close()->execute($sql, $bind);
}
throw new PDOException($e, $this->config, $this->getLastsql());
} catch (\ErrorException $e) {
if ($this->isBreak($e)) {
return $this->close()->execute($sql, $bind);
}
throw $e;
}
}
/**
SQLSTATE | 23000 |
Driver Error Code | 1062 |
Driver Error Message | Duplicate entry '3371874' for key 'PRIMARY' |
Error Code | 10501 |
Error Message | SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '3371874' for key 'PRIMARY' |
Error SQL | INSERT INTO `ws_spiders` (`add_time` , `type` , `pageUrl` , `ip` , `vendor` , `userAgent`) VALUES (1711711936 , 'other' , 'https://www.caishui1688.com/jzbs/4236.html' , '34.228.240.6' , '其它蜘蛛' , 'claudebot') |
type | mysql |
hostname | localhost |
database | www_caishui1688_ |
username | www_caishui1688_ |
password | SmMtCLDFXWmBRFZE |
hostport | 3306 |
dsn | |
params | [] |
charset | utf8 |
prefix | ws_ |
debug | 0 |
deploy | 0 |
rw_separate | |
master_num | 1 |
slave_no | |
fields_strict | 1 |
result_type | 2 |
resultset_type | array |
auto_timestamp | |
datetime_format | Y-m-d H:i:s |
sql_explain | |
builder | |
query | \think\db\Query |
break_reconnect | false |