You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/sqlite.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ export class SQLiteDatabaseClient {
29
29
]);
30
30
}
31
31
asyncdescribeTables({schema}={}){
32
-
returnthis.query(`SELECT schema, name FROM pragma_table_list() WHERE type = 'table'${schema==null ? "" : ` AND schema = ?`} AND name NOT LIKE 'sqlite_%'`,schema==null ? [] : [schema]);
32
+
returnthis.query(`SELECT NULLIF(schema, 'main') AS schema, name FROM pragma_table_list() WHERE type = 'table'${schema==null ? "" : ` AND schema = ?`} AND name NOT LIKE 'sqlite_%'`,schema==null ? [] : [schema]);
0 commit comments