Skip to content

Commit 47c4672

Browse files
committed
Merge pull request #100 from AD7six/sqlite3-allow-using-views
Allow using tables and views
2 parents bfe9fd8 + a4f5725 commit 47c4672

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Model/Datasource/Database/Sqlite3.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ public function listSources() {
219219
return $cache;
220220
}
221221

222-
$result = $this->fetchAll("SELECT name FROM sqlite_master WHERE type='table' ORDER BY name;", false);
222+
$result = $this->fetchAll("SELECT name FROM sqlite_master WHERE type='table' OR type='view' ORDER BY name;", false);
223223

224224
if (!$result || empty($result)) {
225225
return array();

0 commit comments

Comments
 (0)