改名
This commit is contained in:
@@ -39,7 +39,7 @@ class Command extends Component
|
|||||||
/** @var string */
|
/** @var string */
|
||||||
private string $_modelName;
|
private string $_modelName;
|
||||||
|
|
||||||
private ?PDOStatement $prepare;
|
private ?PDOStatement $prepare = null;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -196,7 +196,7 @@ class Command extends Component
|
|||||||
} else {
|
} else {
|
||||||
$result = $this->search($type);
|
$result = $this->search($type);
|
||||||
}
|
}
|
||||||
if ($this->prepare instanceof PDOStatement) {
|
if ($this->prepare) {
|
||||||
$this->prepare->closeCursor();
|
$this->prepare->closeCursor();
|
||||||
}
|
}
|
||||||
if (Config::get('debug.enable', false, false)) {
|
if (Config::get('debug.enable', false, false)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user