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
This commit is contained in:
parent
ff9360f4da
commit
6656a4d161
1 changed files with 1 additions and 1 deletions
|
@ -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)))))
|
||||
|
|
Loading…
Add table
Reference in a new issue