// 调试结束
$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 (1711658970 , 'other' , 'https://www.caishui1688.com/zizhixuke/331_%E7%8E%AF%E4%BF%9D%E5%B7%A5%E7%A8%8B%E4%B8%93%E4%B8%9A%E6%89%BF%E5%8C%85%E8%B5%84%E8%B4%A8%E4%BB%B7%E6%A0%BC%E8%B4%B9%E7%94%A8.html' , '34.203.242.200' , '其它蜘蛛' , '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 |