This commit is contained in:
as2252258@163.com
2021-05-02 14:33:36 +08:00
parent 7e7d63969b
commit b630cc215e
+3
View File
@@ -129,6 +129,9 @@ class Command extends Component
} else { } else {
$result = $this->search($type); $result = $this->search($type);
} }
if ($this->prepare) {
$this->prepare->closeCursor();
}
return $result; return $result;
} catch (\Throwable $exception) { } catch (\Throwable $exception) {
return $this->addError($this->sql . '. error: ' . $exception->getMessage(), 'mysql'); return $this->addError($this->sql . '. error: ' . $exception->getMessage(), 'mysql');