diff --git a/Database/Command.php b/Database/Command.php index 0e5c4c01..104a27f9 100644 --- a/Database/Command.php +++ b/Database/Command.php @@ -121,9 +121,6 @@ class Command extends Component private function execute($type, $isInsert = null, $hasAutoIncrement = null): int|bool|array|string|null { try { - if ($this->prepare) { - $this->prepare->closeCursor(); - } if ($type === static::EXECUTE) { $result = $this->insert_or_change($isInsert, $hasAutoIncrement); } else {