diff options
author | Eric Schulte <schulte.eric@gmail.com> | 2013-12-01 11:06:10 -0700 |
---|---|---|
committer | Eric Schulte <schulte.eric@gmail.com> | 2013-12-01 11:07:16 -0700 |
commit | baa44f6542956e028c164259c79dff681c5ac671 (patch) | |
tree | b18ed3f1a320d12d5d638155b2612af9f059aba5 | |
parent | d173e6c6dbaadf7e10965f3ac31561c49b5373c0 (diff) | |
download | org-mode-baa44f6542956e028c164259c79dff681c5ac671.tar.gz |
add --set=\"ON_ERROR_STOP=1\" to psql execution
Thanks to Joost Helberg for suggesting this change.
* lisp/ob-sql.el (org-babel-execute:sql): Add
--set=\"ON_ERROR_STOP=1\" to psql execution.
-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 d17dd8a..b65332a 100644 --- a/lisp/ob-sql.el +++ b/lisp/ob-sql.el @@ -123,7 +123,7 @@ This function is called by `org-babel-execute-src-block'." (org-babel-process-file-name in-file) (org-babel-process-file-name out-file))) ('postgresql (format - "psql -A -P footer=off -F \"\t\" -f %s -o %s %s" + "psql --set=\"ON_ERROR_STOP=1\" -A -P footer=off -F \"\t\" -f %s -o %s %s" (org-babel-process-file-name in-file) (org-babel-process-file-name out-file) (or cmdline ""))) |