$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 | 23000 |
Driver Error Code | 1048 |
Driver Error Message | Column 'member_id' cannot be null |
Error Code | 10501 |
Error Message | SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'member_id' cannot be null |
Error SQL | INSERT INTO `wht_company_nav` (`member_id` , `createtime` , `nav`) VALUES (NULL , 1711622172 , '[{\"status\":\"on\",\"sort\":\"0\",\"name\":\"公司简介\",\"url\":\"\\/company\\/jlyounai\\/introduce\"},{\"status\":\"on\",\"sort\":\"0\",\"name\":\"供应产品\",\"url\":\"\\/company\\/jlyounai\\/productlist\"},{\"status\":\"on\",\"sort\":\"0\",\"name\":\"新闻中心\",\"url\":\"\\/company\\/jlyounai\\/newslist\"},{\"status\":\"on\",\"sort\":\"0\",\"name\":\"荣誉资质\",\"url\":\"\\/company\\/jlyounai\\/honorlist\"},{\"status\":\"on\",\"sort\":\"0\",\"name\":\"联系方式\",\"url\":\"\\/company\\/jlyounai\\/contact\"},{\"sort\":\"0\",\"name\":\"留言咨询\",\"url\":\"\\/company\\/jlyounai\\/message\",\"status\":\"off\"}]') |
type | mysql |
hostname | mysql55.rdsmcgezr4iqdsw.rds.bj.baidubce.com |
database | acg02new |
hostport | 3306 |
dsn | |
params | [] |
charset | utf8 |
prefix | wht_ |
debug | true |
deploy | 0 |
rw_separate | false |
master_num | 1 |
slave_no | |
read_master | false |
fields_strict | true |
result_type | 2 |
resultset_type | array |
auto_timestamp | false |
datetime_format | false |
sql_explain | false |
builder | |
query | \think\db\Query |
break_reconnect | false |