From 3a45e51c06db212d3921d16dd20c4a223aed69ad Mon Sep 17 00:00:00 2001 From: e <598207893@qq.com> Date: Wed, 20 Dec 2017 12:13:30 +0800 Subject: [PATCH] Bug fix mysqli transaction function call --- env.example => env | 0 system/Database/MySQLi/Connection.php | 8 ++++++++ 2 files changed, 8 insertions(+) rename env.example => env (100%) diff --git a/env.example b/env similarity index 100% rename from env.example rename to env diff --git a/system/Database/MySQLi/Connection.php b/system/Database/MySQLi/Connection.php index a4d977004832..7fd0ebb00e65 100644 --- a/system/Database/MySQLi/Connection.php +++ b/system/Database/MySQLi/Connection.php @@ -300,6 +300,14 @@ public function getVersion() */ public function execute($sql) { + while($this->connID->more_results()) + { + $this->connID->next_result(); + if($res = $this->connID->store_result()) + { + $res->free(); + } + } return $this->connID->query($this->prepQuery($sql)); }