// 调试结束
$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 '653458' for key 'PRIMARY' |
Error Code | 10501 |
Error Message | SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '653458' for key 'PRIMARY' |
Error SQL | INSERT INTO `yunu_browse` (`ip` , `time` , `type`) VALUES ('54.196.248.93' , 1711727762 , 1) |
type | mysql |
hostname | 127.0.0.1 |
database | zjyis |
username | zjyis |
password | 7fewPvV5 |
hostport | 3306 |
dsn | |
params | [] |
charset | utf8 |
prefix | yunu_ |
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 |