emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 440a35f 1/2: Quote table names for postgres listing


From: Matthew Carter
Subject: [Emacs-diffs] master 440a35f 1/2: Quote table names for postgres listings (sql-mode)
Date: Sun, 31 Jan 2016 03:11:09 +0000

branch: master
commit 440a35f6b5770596981189ad65eaa5750b901908
Author: Matthew Carter <address@hidden>
Commit: Matthew Carter <address@hidden>

    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.
---
 lisp/progmodes/sql.el |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lisp/progmodes/sql.el b/lisp/progmodes/sql.el
index 65e94ba..fd59f46 100644
--- a/lisp/progmodes/sql.el
+++ b/lisp/progmodes/sql.el
@@ -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))))
 
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]