createlang now returns 2 for language already exists.

This commit is contained in:
Bruce Momjian 1999-07-09 17:57:46 +00:00
parent 103cf75651
commit cda192317a
2 changed files with 4 additions and 4 deletions

View File

@ -8,7 +8,7 @@
#
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/bin/createlang/Attic/createlang.sh,v 1.1 1999/05/20 16:50:00 wieck Exp $
# $Header: /cvsroot/pgsql/src/bin/createlang/Attic/createlang.sh,v 1.2 1999/07/09 17:57:46 momjian Exp $
#
#-------------------------------------------------------------------------
@ -140,7 +140,7 @@ if [ $? -ne 0 ]; then
fi
if [ ! -z "$res" ]; then
echo "The language '$langname' is already installed in database $dbname"
exit 1
exit 2
fi
# ----------

View File

@ -1,5 +1,5 @@
#!/bin/sh
# $Header: /cvsroot/pgsql/src/test/regress/Attic/regress.sh,v 1.30 1999/06/14 17:49:06 tgl Exp $
# $Header: /cvsroot/pgsql/src/test/regress/Attic/regress.sh,v 1.31 1999/07/09 17:57:46 momjian Exp $
#
if [ $# -eq 0 ]
then
@ -69,7 +69,7 @@ fi
echo "=============== installing PL/pgSQL... ================="
createlang $HOST plpgsql regression
if [ $? -ne 0 ]; then
if [ $? -ne 0 -a $? -ne 2 ]; then
echo createlang failed
exit 1
fi