emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] master 1d7151e: Fix Bug#32107


From: Filipp Gunbin
Subject: [Emacs-diffs] master 1d7151e: Fix Bug#32107
Date: Tue, 10 Jul 2018 22:33:41 -0400 (EDT)

branch: master
commit 1d7151e98e9da5eeb4e341cfdb7d1f4462dc5b70
Author: Filipp Gunbin <address@hidden>
Commit: Filipp Gunbin <address@hidden>

    Fix Bug#32107
    
    * lisp/progmodes/sql.el (sql-buffer-live-p): Fix handling of optional
      connection argument.  (Bug#32107)
---
 lisp/progmodes/sql.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/lisp/progmodes/sql.el b/lisp/progmodes/sql.el
index 223fb2e..ba180c2 100644
--- a/lisp/progmodes/sql.el
+++ b/lisp/progmodes/sql.el
@@ -1270,8 +1270,9 @@ specified, it's `sql-product' or `sql-connection' must 
match."
            (and (derived-mode-p 'sql-interactive-mode)
                 (or (not product)
                     (eq product sql-product))
-                (or (stringp connection)
-                    (string= connection sql-connection)))))))
+                (or (not connection)
+                    (and (stringp connection)
+                         (string= connection sql-connection))))))))
 
 ;; Keymap for sql-interactive-mode.
 



reply via email to

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