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 {
$result = $this->search($type);
}
if ($this->prepare) {
$this->prepare->closeCursor();
}
return $result;
} catch (\Throwable $exception) {
return $this->addError($this->sql . '. error: ' . $exception->getMessage(), 'mysql');