summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Schulte <schulte.eric@gmail.com>2011-10-19 12:07:39 -0600
committerEric Schulte <schulte.eric@gmail.com>2011-10-19 12:07:48 -0600
commit92a01caa6deab2199cd16165f1cc685bbd95ba60 (patch)
tree1fc8c0929b31a5ba7cb121aff9fdb6c86070b1c4
parent0da82db2526c47efa501faea94f5a8415f5b164e (diff)
downloadorg-mode-92a01caa6deab2199cd16165f1cc685bbd95ba60.tar.gz
ob-sql: insert into a temporary buffer
* lisp/ob-sql.el (org-babel-execute:sql): Insert into a temporary buffer.
-rw-r--r--lisp/ob-sql.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/ob-sql.el b/lisp/ob-sql.el
index fb0d7d6..8d34356 100644
--- a/lisp/ob-sql.el
+++ b/lisp/ob-sql.el
@@ -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