1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-29 08:01:23 +03:00

Fix sqlite3_analyzer so that it works on databases containing virtual tables. (CVS 3457)

FossilOrigin-Name: 47c8567fcb6b184ca13fcb67f80d261205c66fc8
This commit is contained in:
drh
2006-10-03 12:04:11 +00:00
parent d75e03df2b
commit f316c8c08b
3 changed files with 9 additions and 8 deletions

View File

@ -119,7 +119,8 @@ set pageSize [db eval {PRAGMA page_size}]
# database, including the sqlite_master table.
#
set sql {
SELECT name, rootpage FROM sqlite_master WHERE type='table'
SELECT name, rootpage FROM sqlite_master
WHERE type='table' AND rootpage>0
UNION ALL
SELECT 'sqlite_master', 1
ORDER BY 1