org-babel-eval command instead of shell-command

* lisp/ob-sql.el (org-babel-execute:sql): Use the org-babel-eval command
  instead of shell-command.
This commit is contained in:
Eric Schulte 2013-02-09 14:18:24 -07:00
parent e2b17ccc52
commit cb3e647734
1 changed files with 1 additions and 1 deletions

View File

@ -135,7 +135,7 @@ This function is called by `org-babel-execute-src-block'."
(t ""))
(org-babel-expand-body:sql body params)))
(message command)
(shell-command command)
(org-babel-eval command "")
(org-babel-result-cond result-params
(with-temp-buffer
(progn (insert-file-contents-literally out-file) (buffer-string)))