modify
This commit is contained in:
@@ -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');
|
||||||
|
|||||||
Reference in New Issue
Block a user