ob-sql: insert into a temporary buffer

* lisp/ob-sql.el (org-babel-execute:sql): Insert into a temporary
  buffer.
This commit is contained in:
Eric Schulte 2011-10-19 12:07:39 -06:00
parent 0da82db252
commit 92a01caa6d
1 changed files with 2 additions and 1 deletions

View File

@ -89,7 +89,8 @@ This function is called by `org-babel-execute-src-block'."
(member "html" result-params) (member "html" result-params)
(member "code" result-params) (member "code" result-params)
(equal (point-min) (point-max))) (equal (point-min) (point-max)))
(progn (insert-file-contents-literally out-file) (buffer-string)) (with-temp-buffer
(progn (insert-file-contents-literally out-file) (buffer-string)))
(with-temp-buffer (with-temp-buffer
;; need to figure out what the delimiter is for the header row ;; need to figure out what the delimiter is for the header row
(with-temp-buffer (with-temp-buffer