This commit is contained in:
as2252258@163.com
2021-05-02 14:38:00 +08:00
parent b630cc215e
commit 8295775548
+1 -1
View File
@@ -147,7 +147,7 @@ class Command extends Component
private function search($type): mixed private function search($type): mixed
{ {
$connect = $this->db->getConnect($this->sql); $connect = $this->db->getConnect($this->sql);
if (!($this->prepare = $connect?->query($this->sql))) { if (!($this->prepare = $connect?->prepare($this->sql))) {
return $this->addError($connect->errorInfo()[2] ?? '数据库异常, 请稍后再试.'); return $this->addError($connect->errorInfo()[2] ?? '数据库异常, 请稍后再试.');
} }
if ($type === static::FETCH_COLUMN) { if ($type === static::FETCH_COLUMN) {