diff options
| author | Lars Ingebrigtsen <larsi@gnus.org> | 2021-12-12 05:41:07 +0100 |
|---|---|---|
| committer | Lars Ingebrigtsen <larsi@gnus.org> | 2021-12-12 05:41:07 +0100 |
| commit | 6656a4d161027cbea3ac21c0d2882eaa357034b0 (patch) | |
| tree | 4417f396d34ad877f358e41357ba3290493b971d | |
| parent | ff9360f4da351d25f1f9fb1ed9a78ce9db321ac4 (diff) | |
| download | emacs-6656a4d161027cbea3ac21c0d2882eaa357034b0.tar.gz | |
Make sqlite-mode-list-tables work on older sqlite versions
* lisp/sqlite-mode.el (sqlite-mode-list-tables): Use sqlite_master
instead of sqlite_schema, since the former name is the historical
name and is available in all sqlite3 versions:
https://sqlite.org/schematab.html
| -rw-r--r-- | lisp/sqlite-mode.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/sqlite-mode.el b/lisp/sqlite-mode.el index 9306bd85dcd..6b5c32234a4 100644 --- a/lisp/sqlite-mode.el +++ b/lisp/sqlite-mode.el @@ -57,7 +57,7 @@ (db sqlite--db) (entries nil)) (erase-buffer) - (dolist (table (sqlite-select db "select name from sqlite_schema where type = 'table' and name not like 'sqlite_%' order by name")) + (dolist (table (sqlite-select db "select name from sqlite_master where type = 'table' and name not like 'sqlite_%' order by name")) (push (list (car table) (caar (sqlite-select db (format "select count(*) from %s" (car table))))) |
