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)
|
||||
(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…
Add table
Reference in a new issue