From 8d1204b087513a5f50f63112b67c08876379ffcf Mon Sep 17 00:00:00 2001 From: tspc Date: Fri, 21 Mar 2008 01:37:57 +0000 Subject: [PATCH] Fix BF1913926 - Errors in migrate_postgresql.sh script --- migration/migrate_postgresql.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/migration/migrate_postgresql.sh b/migration/migrate_postgresql.sh index a0c4cd0042..28f120699f 100644 --- a/migration/migrate_postgresql.sh +++ b/migration/migrate_postgresql.sh @@ -12,6 +12,10 @@ # CarlosRuiz - added multidirectory management 2008/02/20 +# Tony Snook - set AUTOCOMMIT off, this enables the rollback feature to work as expected + +echo "\set AUTOCOMMIT off" + if [ -z "$1" ]; then echo "Usage: $0 [DIRECTORY ... DIRECTORY] [commit]" exit 0 @@ -55,4 +59,4 @@ else echo "ROLLBACK;" fi echo -echo "quit" +echo "\quit"