From 34adf462938c164b6452806ed6598279b7195397 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Mon, 29 Apr 2013 14:46:06 -0700 Subject: [PATCH] Export SQLite views --- adminer/drivers/sqlite.inc.php | 2 +- changes.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/adminer/drivers/sqlite.inc.php b/adminer/drivers/sqlite.inc.php index b99bc2f7..03f44821 100644 --- a/adminer/drivers/sqlite.inc.php +++ b/adminer/drivers/sqlite.inc.php @@ -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; diff --git a/changes.txt b/changes.txt index 4a3d6702..79124ff4 100644 --- a/changes.txt +++ b/changes.txt @@ -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