aboutsummaryrefslogtreecommitdiff
path: root/m4/pgsql.m4
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 /m4/pgsql.m4
parent448cea367a3498ab113cbfd8f980ef360b310d97 (diff)
Make sure PostgreSQL psql driver stops at first error and exits with error code
Diffstat (limited to 'm4/pgsql.m4')
-rw-r--r--m4/pgsql.m42
1 files changed, 1 insertions, 1 deletions
diff --git a/m4/pgsql.m4 b/m4/pgsql.m4
index f894891..e4f6d71 100644
--- a/m4/pgsql.m4
+++ b/m4/pgsql.m4
@@ -180,7 +180,7 @@ AC_CONFIG_COMMANDS([pgsql.options],
echo 'export PGOPTIONS' >>db-driver
echo 'if test x$[]1 != x; then' >>db-driver
- echo " exec $pgsql_client "'$opt <$[]1' >>db-driver
+ echo " exec $pgsql_client "'$opt --set ON_ERROR_STOP=1 -f $[]1' >>db-driver
echo "else" >>db-driver
echo " exec $pgsql_client "'$opt' >>db-driver
echo "fi" >>db-driver