From e87ef33198c23bede2e057415c0a9349e87543c3 Mon Sep 17 00:00:00 2001 From: Nicola Galgano Date: Tue, 27 Feb 2024 19:58:52 +0100 Subject: [PATCH 1/4] not-updatable-views --- src/Mysql/MysqlDriver.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mysql/MysqlDriver.php b/src/Mysql/MysqlDriver.php index 7a7c5c89..eb586a92 100644 --- a/src/Mysql/MysqlDriver.php +++ b/src/Mysql/MysqlDriver.php @@ -486,8 +486,8 @@ public function getTableList() { $this->connect(); - // Set the query to get the tables statement. - return $this->setQuery('SHOW TABLES')->loadColumn(); + // Set the query to get the tables statement and not the views. + return $this->setQuery('SHOW FULL TABLES WHERE table_type="BASE TABLE"')->loadColumn(); } /** From e5aec64372ad67c95f2dacdece06d4528934151d Mon Sep 17 00:00:00 2001 From: Nicola Galgano Date: Tue, 27 Feb 2024 20:30:22 +0100 Subject: [PATCH 2/4] only-tables --- src/Mysqli/MysqliDriver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mysqli/MysqliDriver.php b/src/Mysqli/MysqliDriver.php index ee0fe407..44f6e27c 100644 --- a/src/Mysqli/MysqliDriver.php +++ b/src/Mysqli/MysqliDriver.php @@ -632,7 +632,7 @@ public function getTableList() $this->connect(); // Set the query to get the tables statement. - return $this->setQuery('SHOW TABLES')->loadColumn(); + return $this->setQuery('SHOW FULL TABLES WHERE table_type="BASE TABLE"')->loadColumn(); } /** From 841b274a33a1656ee943d6124a99902c1b1f307f Mon Sep 17 00:00:00 2001 From: Nicola Galgano Date: Wed, 28 Feb 2024 08:30:42 +0100 Subject: [PATCH 3/4] cs --- src/Mysql/MysqlDriver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mysql/MysqlDriver.php b/src/Mysql/MysqlDriver.php index eb586a92..c41517d0 100644 --- a/src/Mysql/MysqlDriver.php +++ b/src/Mysql/MysqlDriver.php @@ -487,7 +487,7 @@ public function getTableList() $this->connect(); // Set the query to get the tables statement and not the views. - return $this->setQuery('SHOW FULL TABLES WHERE table_type="BASE TABLE"')->loadColumn(); + return $this->setQuery('SHOW FULL TABLES WHERE table_type="BASE TABLE"')->loadColumn(); } /** From fe71946d93b3f02f4042d8286f47517a66f03084 Mon Sep 17 00:00:00 2001 From: Nicola Galgano Date: Sun, 10 Mar 2024 20:08:31 +0100 Subject: [PATCH 4/4] same comment --- src/Mysqli/MysqliDriver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mysqli/MysqliDriver.php b/src/Mysqli/MysqliDriver.php index 44f6e27c..7050f7b0 100644 --- a/src/Mysqli/MysqliDriver.php +++ b/src/Mysqli/MysqliDriver.php @@ -631,7 +631,7 @@ public function getTableList() { $this->connect(); - // Set the query to get the tables statement. + // Set the query to get the tables statement and not the views. return $this->setQuery('SHOW FULL TABLES WHERE table_type="BASE TABLE"')->loadColumn(); }