From d8e3c0603541b138723b7b470a9838bf8c864113 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Sun, 2 May 2021 15:08:42 +0800 Subject: [PATCH] modify --- Database/Command.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Database/Command.php b/Database/Command.php index 2a5f26b7..afb1d0d8 100644 --- a/Database/Command.php +++ b/Database/Command.php @@ -172,7 +172,7 @@ class Command extends Component if (!(($connect = $this->db->getConnect($this->sql)) instanceof PDO)) { return $this->addError('get client error.', 'mysql'); } - if (!(($prepare = $connect->prepare($this->sql, [PDO::ATTR_CURSOR => PDO::CURSOR_SCROLL])) instanceof PDOStatement)) { + if (!(($prepare = $connect->prepare($this->sql)) instanceof PDOStatement)) { $error = $prepare->errorInfo()[2] ?? static::DB_ERROR_MESSAGE; return $this->addError($this->sql . ':' . $error, 'mysql'); }