Browse Source

ob-sql: insert into a temporary buffer

* lisp/ob-sql.el (org-babel-execute:sql): Insert into a temporary
  buffer.
Eric Schulte 13 years ago
parent
commit
92a01caa6d
1 changed files with 2 additions and 1 deletions
  1. 2 1
      lisp/ob-sql.el

+ 2 - 1
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