1
0
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-11-23 07:18:53 +00:00

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

View File

@ -89,7 +89,8 @@ This function is called by `org-babel-execute-src-block'."
(member "html" result-params)
(member "code" result-params)
(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
;; need to figure out what the delimiter is for the header row
(with-temp-buffer