diff options
author | Bruce Momjian <bruce@momjian.us> | 2002-06-11 22:21:01 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2002-06-11 22:21:01 +0000 |
commit | 237fb9bbc678c008c9391708dd391b29ab3dcd3a (patch) | |
tree | cf993b5dde0a70cd1bcb350978c7d57182ca73b9 /src | |
parent | 435941440bb5eb9364dca829905767080a2aaa9b (diff) | |
download | postgresql-237fb9bbc678c008c9391708dd391b29ab3dcd3a.tar.gz postgresql-237fb9bbc678c008c9391708dd391b29ab3dcd3a.zip |
Allow createdb to create comments in current db, not template1.
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/scripts/createdb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/scripts/createdb b/src/bin/scripts/createdb index 91d544f9e00..5d185b62f79 100644 --- a/src/bin/scripts/createdb +++ b/src/bin/scripts/createdb @@ -12,7 +12,7 @@ # # # IDENTIFICATION -# $Header: /cvsroot/pgsql/src/bin/scripts/Attic/createdb,v 1.21 2002/04/12 09:37:10 momjian Exp $ +# $Header: /cvsroot/pgsql/src/bin/scripts/Attic/createdb,v 1.22 2002/06/11 22:21:01 momjian Exp $ # #------------------------------------------------------------------------- @@ -198,7 +198,7 @@ fi dbcomment=`echo "$dbcomment" | sed "s/'/\\\\\'/g"` -${PATHNAME}psql $PSQLOPT -d template1 -c "COMMENT ON DATABASE \"$dbname\" IS '$dbcomment'" +${PATHNAME}psql $PSQLOPT -d "$dbname" -c "COMMENT ON DATABASE \"$dbname\" IS '$dbcomment'" if [ "$?" -ne 0 ]; then echo "$CMDNAME: comment creation failed (database was created)" 1>&2 exit 1 |