We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b14b0c commit 267c6c7Copy full SHA for 267c6c7
src/bin/scripts/createdb
@@ -11,7 +11,7 @@
11
#
12
13
# IDENTIFICATION
14
-# $Header: /cvsroot/pgsql/src/bin/scripts/Attic/createdb,v 1.4 1999/12/16 20:10:02 momjian Exp $
+# $Header: /cvsroot/pgsql/src/bin/scripts/Attic/createdb,v 1.5 2000/01/12 13:08:55 ishii Exp $
15
16
#-------------------------------------------------------------------------
17
@@ -121,8 +121,10 @@ if [ "$usage" ]; then
121
fi
122
123
124
-if [ "$MB" ]
125
-then if [ -z "`pg_encoding '$MB'`" ]
+if [ -n "$MB" ]
+then
126
+ mbcode=`pg_encoding "$MB"`
127
+ if [ -z "$mbcode" ]
128
then
129
echo "$CMDNAME: \"$MB\" is not a valid encoding name."
130
exit 1
0 commit comments