1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-27 10:54:40 +00:00

Quote table names for postgres listings (sql-mode)

* lisp/progmodes/sql.el (sql-postgres-completion-object): Avoid passing
  unquoted table names to the completion list.
This commit is contained in:
Matthew Carter 2016-02-09 22:05:15 -05:00
parent 6bac035d60
commit 7dd45b61b1

View File

@ -4948,8 +4948,8 @@ Try to set `comint-output-filter-functions' like this:
;; Return the list of table names (public schema name can be omitted)
(mapcar #'(lambda (tbl)
(if (string= (car tbl) "public")
(cadr tbl)
(format "%s.%s" (car tbl) (cadr tbl))))
(format "\"%s\"" (cadr tbl))
(format "\"%s\".\"%s\"" (car tbl) (cadr tbl))))
cl))))