[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs-25 7dd45b6: Quote table names for postgres listings
From: |
Matthew Carter |
Subject: |
[Emacs-diffs] emacs-25 7dd45b6: Quote table names for postgres listings (sql-mode) |
Date: |
Wed, 10 Feb 2016 03:07:52 +0000 |
branch: emacs-25
commit 7dd45b61b1cdcf0e5bd1620ab7e63a0b5095ffb8
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))))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] emacs-25 7dd45b6: Quote table names for postgres listings (sql-mode),
Matthew Carter <=