diff options
author | Eric Schulte <schulte.eric@gmail.com> | 2011-03-07 08:32:00 -0700 |
---|---|---|
committer | Eric Schulte <schulte.eric@gmail.com> | 2011-03-07 08:32:37 -0700 |
commit | 7cb0891f7ab79e41e4c4c497b10539084f278973 (patch) | |
tree | 3fbe5ae6b4a1ce25147926cbe8a02ab06abbefab | |
parent | 11a10bdfe765b8cd8c70c6494b334a81213dc0d0 (diff) | |
download | org-mode-7cb0891f7ab79e41e4c4c497b10539084f278973.tar.gz |
ob-sql: feed mysql through a pipe, thanks to Alain Clément
-rw-r--r-- | lisp/ob-sql.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/ob-sql.el b/lisp/ob-sql.el index 338a2cc..9207769 100644 --- a/lisp/ob-sql.el +++ b/lisp/ob-sql.el @@ -71,7 +71,7 @@ This function is called by `org-babel-execute-src-block'." (or cmdline "") (org-babel-process-file-name in-file) (org-babel-process-file-name out-file))) - ('mysql (format "mysql %s -e \"source %s\" > %s" + ('mysql (format "mysql %s < %s > %s" (or cmdline "") (org-babel-process-file-name in-file) (org-babel-process-file-name out-file))) |