From de67a84de3bbb1cb70e3224765c5cbf85c8f1cc1 Mon Sep 17 00:00:00 2001 From: Dan Scott Date: Mon, 3 Oct 2011 23:35:35 -0400 Subject: [PATCH] Fix update_db.sh to set eg_version correctly psql wants --set=VARNAME=VALUE, we had -set VARNAME=VALUE; tested this fix and it works with PostgreSQL 9.0. Signed-off-by: Dan Scott --- build/tools/update_db.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/tools/update_db.sh b/build/tools/update_db.sh index 3177f1b76f..e93431c8bf 100755 --- a/build/tools/update_db.sh +++ b/build/tools/update_db.sh @@ -106,7 +106,7 @@ if [ $COUNT -gt 0 ] ; then for (( i=0; i<$COUNT; i++ )) ; do echo "* Applying ${FILES[$i]}" >&3; # to the main script STDOUT cat ${FILES[$i]}; # to the psql pipe - done | psql -set eg_version="'$EGVERSION'" $PSQL_ACCESS ; + done | psql --set=eg_version="'$EGVERSION'" $PSQL_ACCESS ; else echo "* Nothing to update"; fi -- 2.43.2