mirror of
https://github.com/postgres/postgres.git
synced 2025-05-06 19:59:18 +03:00
Droplang didn't have test for -l, list. This was really broken too.
Took test from createlang.
This commit is contained in:
parent
4ecd278991
commit
b9da4b726c
@ -7,7 +7,7 @@
|
|||||||
# Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
|
# Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
|
||||||
# Portions Copyright (c) 1994, Regents of the University of California
|
# Portions Copyright (c) 1994, Regents of the University of California
|
||||||
#
|
#
|
||||||
# $Header: /cvsroot/pgsql/src/bin/scripts/Attic/droplang,v 1.19 2002/01/03 06:09:02 momjian Exp $
|
# $Header: /cvsroot/pgsql/src/bin/scripts/Attic/droplang,v 1.20 2002/01/03 08:53:00 momjian Exp $
|
||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
|
|
||||||
@ -96,11 +96,15 @@ do
|
|||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
langname="$1"
|
if [ "$list" != "t" ]
|
||||||
if [ "$2" ]; then
|
then langname="$1"
|
||||||
|
if [ "$2" ]
|
||||||
|
then
|
||||||
shift
|
shift
|
||||||
dbname="$1"
|
dbname="$1"
|
||||||
fi
|
fi
|
||||||
|
else dbname="$1"
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
shift
|
shift
|
||||||
|
Loading…
x
Reference in New Issue
Block a user