提交 cda19231 编写于 作者: B Bruce Momjian

createlang now returns 2 for language already exists.

上级 103cf756
......@@ -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
# ----------
......
#!/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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册