]> git.joonet.de Git - adminer.git/commitdiff
SQLite: Fix displayed types (bug #784)
authorJakub Vrana <jakub@vrana.cz>
Mon, 15 Feb 2021 17:07:00 +0000 (18:07 +0100)
committerJakub Vrana <jakub@vrana.cz>
Mon, 15 Feb 2021 17:33:19 +0000 (18:33 +0100)
adminer/drivers/sqlite.inc.php
changes.txt

index 265d4690a952e2e83ad7f975278f89a4e2cc5620..da698fdd3446c50883e942a0fcf6fead6b239d71 100644 (file)
@@ -785,10 +785,11 @@ if (isset($_GET["sqlite"]) || isset($_GET["sqlite2"])) {
        }
 
        function driver_config() {
+               $types = array("integer" => 0, "real" => 0, "numeric" => 0, "text" => 0, "blob" => 0);
                return array(
                        'possible_drivers' => array((isset($_GET["sqlite"]) ? "SQLite3" : "SQLite"), "PDO_SQLite"),
                        'jush' => "sqlite",
-                       'types' => array("integer" => 0, "real" => 0, "numeric" => 0, "text" => 0, "blob" => 0),
+                       'types' => $types,
                        'structured_types' => array_keys($types),
                        'unsigned' => array(),
                        'operators' => array("=", "<", ">", "<=", ">=", "!=", "LIKE", "LIKE %%", "IN", "IS NULL", "NOT LIKE", "NOT IN", "IS NOT NULL", "SQL"), // REGEXP can be user defined function
index 5c6929de88bf4fb59e34b6ba2faada99eec062b6..58217ca1df2025e0b86b2d7a418b1bb78be5042f 100644 (file)
@@ -1,6 +1,7 @@
 Adminer 4.8.1-dev:
 Fix more PHP 8 warnings (bug #781)
 MySQL: Allow moving views to other DB and renaming DB with views (bug #783)
+SQLite: Fix displayed types (bug #784, regression from 4.8.0)
 
 Adminer 4.8.0 (released 2021-02-10):
 Support function default values in insert (bug #713)