diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-12-01 12:40:01 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-12-01 12:40:01 +0200 |
commit | 08613d9556bb2bcb5d1a6e123d11a8f3ffec22dc (patch) | |
tree | 80c609d416d2f3da3e88b60dc4f4438a4dd7dcf0 /build/pgsql | |
parent | 2a95cabe38f24eddd2739dcb5ef3657e4c165082 (diff) |
Make sure PostgreSQL psql driver stops at first error and exits with error code
Diffstat (limited to 'build/pgsql')
-rwxr-xr-x | build/pgsql/pgsql | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build/pgsql/pgsql b/build/pgsql/pgsql index 0f92871..356079a 100755 --- a/build/pgsql/pgsql +++ b/build/pgsql/pgsql @@ -49,7 +49,7 @@ opt="--quiet $opt" export PGOPTIONS=--client-min-messages=warning if [ -n "$1" ]; then - exec $driver $opt <$1 + exec $driver $opt --set ON_ERROR_STOP=1 -f $1 else exec $driver $opt fi |