mirror of
https://github.com/postgres/postgres.git
synced 2025-04-24 10:47:04 +03:00
createlang now returns 2 for language already exists.
This commit is contained in:
parent
103cf75651
commit
cda192317a
@ -8,7 +8,7 @@
|
|||||||
#
|
#
|
||||||
#
|
#
|
||||||
# IDENTIFICATION
|
# 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
|
fi
|
||||||
if [ ! -z "$res" ]; then
|
if [ ! -z "$res" ]; then
|
||||||
echo "The language '$langname' is already installed in database $dbname"
|
echo "The language '$langname' is already installed in database $dbname"
|
||||||
exit 1
|
exit 2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# ----------
|
# ----------
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/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 ]
|
if [ $# -eq 0 ]
|
||||||
then
|
then
|
||||||
@ -69,7 +69,7 @@ fi
|
|||||||
|
|
||||||
echo "=============== installing PL/pgSQL... ================="
|
echo "=============== installing PL/pgSQL... ================="
|
||||||
createlang $HOST plpgsql regression
|
createlang $HOST plpgsql regression
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 -a $? -ne 2 ]; then
|
||||||
echo createlang failed
|
echo createlang failed
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user