Browse Source

ob-sql: feed mysql through a pipe, thanks to Alain Clément

Eric Schulte 14 years ago
parent
commit
7cb0891f7a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lisp/ob-sql.el

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