$this->PDOStatement->execute();
// 调试结束
$this->debug(false, '', $master);
// 返回结果集
return $this->getResult($pdo, $procedure);
} catch (\PDOException $e) {
if ($this->isBreak($e)) {
return $this->close()->query($sql, $bind, $master, $pdo);
}
throw new PDOException($e, $this->config, $this->getLastsql());
} catch (\Throwable $e) {
if ($this->isBreak($e)) {
return $this->close()->query($sql, $bind, $master, $pdo);
}
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 'svdw_gsxx' in 'where clause' |
Error Code | 10501 |
Error Message | SQLSTATE[42S22]: Column not found: 1054 Unknown column 'svdw_gsxx' in 'where clause' |
Error SQL | SELECT image,url FROM szedu.`sz_image` WHERE ( `province_id` = svdw_gsxx AND `pid` = 28 AND `status` = 1 AND `delete_time` IS NULL) OR ( `province_id` = 0 AND `pid` = 28 AND `status` = 1 AND `delete_time` IS NULL) ORDER BY sort asc,create_time desc LIMIT 6 |
type | mysql |
hostname | 192.168.0.84 |
database | szedu2 |
hostport | 3306 |
dsn | |
params | [] |
charset | utf8 |
prefix | sz_ |
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 |