aboutsummaryrefslogtreecommitdiff
path: root/build/pgsql/pgsql
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-12-01 12:40:01 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-12-01 12:40:01 +0200
commit8a5208e9b3e0698bc1df93ab91ec4a32d03fad03 (patch)
tree26e27f887aea079958b1f8ff4d52d4f421fb0dba /build/pgsql/pgsql
parent448cea367a3498ab113cbfd8f980ef360b310d97 (diff)
Make sure PostgreSQL psql driver stops at first error and exits with error code
Diffstat (limited to 'build/pgsql/pgsql')
-rwxr-xr-xbuild/pgsql/pgsql2
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