diff options
author | Dan Davison <davison@stats.ox.ac.uk> | 2010-10-21 12:36:02 +0100 |
---|---|---|
committer | Dan Davison <davison@stats.ox.ac.uk> | 2010-10-21 13:06:03 +0100 |
commit | 542f77d3f50fdc4d55a7d092d3ce7b7d91f983ae (patch) | |
tree | 6d537bc094ee08486e758b089bdad1359aaf8d5d | |
parent | 07c84b293c449aada0dd3168fad279154498e612 (diff) | |
download | org-mode-542f77d3f50fdc4d55a7d092d3ce7b7d91f983ae.tar.gz |
babel: sql: Use generic expansion function
* ob-sql.el (org-babel-execute:sql): Use generic expansion
function
(org-babel-expand-body:sql): Delete function
-rw-r--r-- | lisp/ob-sql.el | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lisp/ob-sql.el b/lisp/ob-sql.el index 9c52c77..fcb03d1 100644 --- a/lisp/ob-sql.el +++ b/lisp/ob-sql.el @@ -50,9 +50,6 @@ (defvar org-babel-default-header-args:sql '()) -(defun org-babel-expand-body:sql (body params) - "Expand BODY according to PARAMS, return the expanded body." body) - (defun org-babel-execute:sql (body params) "Execute a block of Sql code with Babel. This function is called by `org-babel-execute-src-block'." @@ -74,7 +71,7 @@ This function is called by `org-babel-execute-src-block'." (or cmdline ""))) (t (error "no support for the %s sql engine" engine))))) (with-temp-file in-file - (insert (org-babel-expand-body:sql body params))) + (insert (org-babel-expand-body:generic body params))) (message command) (shell-command command) (with-temp-buffer |