From 90a11eb03178e1e9ebd233d497c477fd6a581648 Mon Sep 17 00:00:00 2001 From: Damien Regad Date: Sat, 19 Jul 2025 18:46:15 +0200 Subject: Remove unnecessary where clause According to SQLite schema documentation, the only valid values for *type* are 'table', 'index', 'view', or 'trigger' [1] so testing for `type != 'meta'` is useless. [1]: https://sqlite.org/schematab.html#interpretation_of_the_schema_table --- drivers/adodb-sqlite3.inc.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/adodb-sqlite3.inc.php b/drivers/adodb-sqlite3.inc.php index 4e2815d6..6fdf2ab8 100644 --- a/drivers/adodb-sqlite3.inc.php +++ b/drivers/adodb-sqlite3.inc.php @@ -219,8 +219,7 @@ class ADODB_sqlite3 extends ADOConnection { */ $sql = "SELECT sql FROM sqlite_master - WHERE type != 'meta' - AND sql NOTNULL + WHERE sql NOTNULL AND LOWER(name) = ?"; $tableSql = $this->getOne($sql, [strtolower($table)]); -- cgit v1.3