$query->readMaster();
}
$this->numRows = $this->PDOStatement->rowCount();
return $this->numRows;
} catch (\PDOException $e) {
if ($this->isBreak($e)) {
return $this->close()->execute($sql, $bind, $query);
}
throw new PDOException($e, $this->config, $this->getLastsql());
} catch (\Throwable $e) {
if ($this->isBreak($e)) {
return $this->close()->execute($sql, $bind, $query);
}
throw $e;
} catch (\Exception $e) {
if ($this->isBreak($e)) {
return $this->close()->execute($sql, $bind, $query);
}
SQLSTATE | 22007 |
Driver Error Code | 1292 |
Driver Error Message | Truncated incorrect DOUBLE value: '曼朗SEO' |
Error Code | 10501 |
Error Message | SQLSTATE[22007]: Invalid datetime format: 1292 Truncated incorrect DOUBLE value: '曼朗SEO' |
Error SQL | UPDATE `seonew_news` SET `views`=`views`+1 WHERE `id` = 2650 |
type | mysql |
hostname | 127.0.0.1 |
database | seoaslnewl |
hostport | 3306 |
dsn | |
params | [] |
charset | utf8 |
prefix | seonew_ |
debug | true |
deploy | 0 |
rw_separate | false |
master_num | 1 |
slave_no | |
read_master | false |
fields_strict | true |
result_type | 2 |
resultset_type | \think\Collection |
auto_timestamp | true |
datetime_format | Y-m-d H:i |
sql_explain | true |
builder | |
query | \think\db\Query |
break_reconnect | true |