mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-13 09:30:24 -08: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
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
;; Return the list of table names (public schema name can be omitted)
|
||||||
(mapcar #'(lambda (tbl)
|
(mapcar #'(lambda (tbl)
|
||||||
(if (string= (car tbl) "public")
|
(if (string= (car tbl) "public")
|
||||||
(cadr tbl)
|
(format "\"%s\"" (cadr tbl))
|
||||||
(format "%s.%s" (car tbl) (cadr tbl))))
|
(format "\"%s\".\"%s\"" (car tbl) (cadr tbl))))
|
||||||
cl))))
|
cl))))
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue