Commit 7dd45b61 authored by Matthew Carter's avatar Matthew Carter

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.
parent 6bac035d
......@@ -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))))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment