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:
parent
6bac035d60
commit
7dd45b61b1
@ -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))))
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user