File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 2323# Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
2424# Portions Copyright (c) 1994, Regents of the University of California
2525#
26- # $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.122 2001/03/13 21:37:15 petere Exp $
26+ # $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.123 2001/03/27 05:45:50 ishii Exp $
2727#
2828# -------------------------------------------------------------------------
2929
@@ -311,6 +311,10 @@ then
311311 then
312312 echo " $CMDNAME : $MULTIBYTE is not a valid encoding name" 1>&2
313313 exit 1
314+ elif [ $MULTIBYTEID -gt 31 ]
315+ then
316+ echo " $CMDNAME : $MULTIBYTE cannot be used as a database encoding" 1>&2
317+ exit 1
314318 fi
315319fi
316320
Original file line number Diff line number Diff line change 1212#
1313#
1414# IDENTIFICATION
15- # $Header: /cvsroot/pgsql/src/bin/scripts/Attic/createdb,v 1.14 2001/02/18 17:53:54 tgl Exp $
15+ # $Header: /cvsroot/pgsql/src/bin/scripts/Attic/createdb,v 1.15 2001/03/27 05:47:13 ishii Exp $
1616#
1717# -------------------------------------------------------------------------
1818
@@ -145,6 +145,10 @@ then
145145 then
146146 echo " $CMDNAME : \" $MB \" is not a valid encoding name" 1>&2
147147 exit 1
148+ elif [ $mbcode -gt 31 ]
149+ then
150+ echo " $CMDNAME : $MB cannot be used as a database encoding" 1>&2
151+ exit 1
148152 fi
149153fi
150154
You can’t perform that action at this time.
0 commit comments