Commits

Kirill Simonov committed 8adf93c

SQLite: do not forget to introspect views.

Comments (0)

Files changed (1)

src/htsql_sqlite/core/introspect.py

         cursor.execute("""
             SELECT *
             FROM sqlite_master
-            WHERE type = 'table'
+            WHERE type = 'table' OR type = 'view'
             ORDER BY name
         """)
         for row in cursor.fetchnamed():