From 542f77d3f50fdc4d55a7d092d3ce7b7d91f983ae Mon Sep 17 00:00:00 2001 From: Dan Davison Date: Thu, 21 Oct 2010 12:36:02 +0100 Subject: [PATCH] babel: sql: Use generic expansion function * ob-sql.el (org-babel-execute:sql): Use generic expansion function (org-babel-expand-body:sql): Delete function --- lisp/ob-sql.el | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lisp/ob-sql.el b/lisp/ob-sql.el index 9c52c7743..fcb03d1e4 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