From 92a01caa6deab2199cd16165f1cc685bbd95ba60 Mon Sep 17 00:00:00 2001 From: Eric Schulte Date: Wed, 19 Oct 2011 12:07:39 -0600 Subject: [PATCH] ob-sql: insert into a temporary buffer * lisp/ob-sql.el (org-babel-execute:sql): Insert into a temporary buffer. --- lisp/ob-sql.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/ob-sql.el b/lisp/ob-sql.el index fb0d7d615..8d343562c 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 -- 2.11.4.GIT