// 调试结束
$this->debug(false);
// 返回结果集
return $this->getResult($pdo, $procedure);
} catch (\PDOException $e) {
if ($this->isBreak($e)) {
return $this->close()->query($sql, $bind, $master, $pdo);
}
echo '错误语句:'. $sql;
throw new PDOException($e, $this->config, $this->getLastsql());
} catch (\Throwable $e) {
if ($this->isBreak($e)) {
return $this->close()->query($sql, $bind, $master, $pdo);
}
echo '错误语句:'. $sql;
throw $e;
} catch (\Exception $e) {
if ($this->isBreak($e)) {
return $this->close()->query($sql, $bind, $master, $pdo);
SQLSTATE | 42S22 |
Driver Error Code | 1054 |
Driver Error Message | Unknown column 'is_on_sale' in 'where clause' |
Error Code | 10501 |
Error Message | SQLSTATE[42S22]: Column not found: 1054 Unknown column 'is_on_sale' in 'where clause' |
Error SQL | SELECT `goods_id` FROM `tp_goods` WHERE `is_on_sale` = 1 AND `exchange_integral` = 0 AND `cat_id` IN (588,608,732,749,750,609,751,752,753,754,610,755,758,759,760,761,611,756,762,763,764,765,757,766,767,769,770,771) AND `is_virtual` = 0 |
type | mysql |
hostname | localhost |
database | fjsjgroup_com |
hostport | 3306 |
dsn | |
params | [] |
charset | utf8 |
prefix | tp_ |
debug | true |
deploy | 0 |
rw_separate | false |
master_num | 1 |
slave_no | |
fields_strict | true |
result_type | 2 |
resultset_type | array |
auto_timestamp | false |
datetime_format | Y-m-d H:i:s |
sql_explain | false |
builder | |
query | \think\db\Query |
break_reconnect | false |