$this->PDOStatement->execute();
// 调试结束
$this->debug(false);
// 返回结果集
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 (\ErrorException $e) {
if ($this->isBreak($e)) {
return $this->close()->query($sql, $bind, $master, $pdo);
}
throw $e;
}
}
/**
SQLSTATE | 42S22 |
Driver Error Code | 1054 |
Driver Error Message | Unknown column 'brand' in 'where clause' |
Error Code | 10501 |
Error Message | SQLSTATE[42S22]: Column not found: 1054 Unknown column 'brand' in 'where clause' |
Error SQL | SELECT COUNT(*) AS tp_count FROM `yunu_content` `con` INNER JOIN `yunu_diy_producthongganji` `diy` ON `con`.`vid`=`diy`.`conid` WHERE `create_time` < 1711726457 AND ( `cid` IN (5) OR ( CONCAT(',',addcid,',') REGEXP CONCAT(',(',REPLACE('5',',','|'),'),') ) ) AND ( ( `area` is NULL ) or `area` = '' or `area` = ',,' or `area` LIKE '%,88888888,%' ) AND ( ( 1 = 1 ) and ((brand LIKE '%高能效常温热水机%')) and ( 1 = 1 ) and ( 1 = 1 ) ) LIMIT 1 |
type | mysql |
hostname | 127.0.0.1 |
database | oubite_foshannet |
username | oubite_foshannet |
password | wk4JK7hfXYJ3eSdZ |
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 |