]> git.joonet.de Git - adminer.git/commitdiff
Ignore auto_increment in SQLite export
authorJakub Vrana <jakub@vrana.cz>
Fri, 4 Jun 2010 13:50:40 +0000 (15:50 +0200)
committerJakub Vrana <jakub@vrana.cz>
Fri, 4 Jun 2010 13:50:40 +0000 (15:50 +0200)
adminer/drivers/sqlite.inc.php

index 86a6fa1f7fe5dcd44ecd5af9759e9826f849b02d..170c6f627a62c17b90862a0c6d300421d96ba772 100644 (file)
@@ -523,10 +523,7 @@ if (isset($_GET["sqlite"]) || isset($_GET["sqlite2"])) {
        
        function create_sql($table, $auto_increment) {
                global $connection;
-               return ($auto_increment || $table != "sqlite_sequence" //! remove also INSERT
-                       ? $connection->result("SELECT sql FROM sqlite_master WHERE type = 'table' AND name = " . $connection->quote($table))
-                       : ""
-               );
+               return $connection->result("SELECT sql FROM sqlite_master WHERE type = 'table' AND name = " . $connection->quote($table));
        }
        
        function truncate_sql($table) {