]> git.joonet.de Git - adminer.git/commitdiff
Export SQLite views
authorJakub Vrana <jakub@vrana.cz>
Mon, 29 Apr 2013 21:46:06 +0000 (14:46 -0700)
committerJakub Vrana <jakub@vrana.cz>
Mon, 29 Apr 2013 22:37:50 +0000 (15:37 -0700)
adminer/drivers/sqlite.inc.php
changes.txt

index b99bc2f78364e999e2afa90d53855ed65c7fa4da..03f4482194919e0a30ba060d8d61a5c8407f9ac6 100644 (file)
@@ -620,7 +620,7 @@ if (isset($_GET["sqlite"]) || isset($_GET["sqlite2"])) {
        
        function create_sql($table, $auto_increment) {
                global $connection;
-               $return = $connection->result("SELECT sql FROM sqlite_master WHERE type = 'table' AND name = " . q($table));
+               $return = $connection->result("SELECT sql FROM sqlite_master WHERE type IN ('table', 'view') AND name = " . q($table));
                foreach (indexes($table) as $name => $index) {
                        if ($name == '') {
                                continue;
index 4a3d670236a4b32085dfc442b2b1cd93e2a6fa75..79124ff449e145f5632f127a1f00ed5415076a9a 100644 (file)
@@ -9,6 +9,7 @@ MySQL: Display bit type as binary number
 MySQL: Improve export of binary data types
 MySQL: Fix handling of POINT data type (bug #3582578)
 MySQL: Don't export binary and geometry columns twice in select
+SQLite: Export views
 
 Adminer 3.6.4 (released 2013-04-26):
 Display pagination on a fixed position