From 67fce7d346057325f9a684d4f5e81b87612b7da8 Mon Sep 17 00:00:00 2001 From: XinHui Long Date: Thu, 29 Apr 2021 15:28:32 +0800 Subject: [PATCH] fix Medoo >= v1.4 --- src/Model/Database.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Model/Database.php b/src/Model/Database.php index b4c9e557..07e60ba8 100644 --- a/src/Model/Database.php +++ b/src/Model/Database.php @@ -58,14 +58,14 @@ public function reconnect() * @param $query * @return bool|false|\PDOStatement */ - public function query($query) + public function query($query, $map = []) { try { - return $this->pdo->query($query); + return parent::query($query, $map); } catch (Exception $e) { $this->reconnect(); - return $this->pdo->query($query); + return parent::query($query, $map); } } @@ -73,14 +73,14 @@ public function query($query) * @param $query * @return bool|int */ - public function exec($query) + public function exec($query, $map = []) { try { - return $this->pdo->exec($query); + return parent::exec($query, $map); } catch (Exception $e) { $this->reconnect(); - return $this->pdo->exec($query); + return parent::exec($query, $map); } }