From b630cc215e6d9c930d10b816d7f0f946bb9f68bb Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Sun, 2 May 2021 14:33:36 +0800 Subject: [PATCH] modify --- Database/Command.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Database/Command.php b/Database/Command.php index 6af8a7be..0e5c4c01 100644 --- a/Database/Command.php +++ b/Database/Command.php @@ -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');