Browse Source

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.
Eric Schulte 12 years ago
parent
commit
cb3e647734
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lisp/ob-sql.el

+ 1 - 1
lisp/ob-sql.el

@@ -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)))