mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-08-26 10:02:52 +00:00
lisp/ob-sql.el: allow string in sql-connection-alist
* ob-sql.el (org-babel-find-db-connection-param): read sql-connection-alist like sql.el/sql-connect and allow strings. Signed-off-by: Andreas Gerler <baron@bundesbrandschatzamt.de>
This commit is contained in:
parent
0509a84786
commit
1f86003a5d
|
@ -234,7 +234,7 @@ database connections."
|
|||
(:database . sql-database)))
|
||||
(mapped-name (cdr (assq name name-mapping))))
|
||||
(cadr (assq mapped-name
|
||||
(cdr (assoc dbconnection sql-connection-alist))))))))
|
||||
(cdr (assoc-string dbconnection sql-connection-alist t))))))))
|
||||
|
||||
(defun org-babel-execute:sql (body params)
|
||||
"Execute a block of Sql code with Babel.
|
||||
|
|
Loading…
Reference in a new issue