Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit237fb9b

Browse files
committed
Allow createdb to create comments in current db, not template1.
1 parent4359414 commit237fb9b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/bin/scripts/createdb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#
1313
#
1414
# IDENTIFICATION
15-
# $Header: /cvsroot/pgsql/src/bin/scripts/Attic/createdb,v 1.21 2002/04/12 09:37:10 momjian Exp $
15+
# $Header: /cvsroot/pgsql/src/bin/scripts/Attic/createdb,v 1.22 2002/06/11 22:21:01 momjian Exp $
1616
#
1717
#-------------------------------------------------------------------------
1818

@@ -198,7 +198,7 @@ fi
198198

199199
dbcomment=`echo"$dbcomment"| sed"s/'/\\\\\'/g"`
200200

201-
${PATHNAME}psql$PSQLOPT -dtemplate1 -c"COMMENT ON DATABASE\"$dbname\" IS '$dbcomment'"
201+
${PATHNAME}psql$PSQLOPT -d"$dbname" -c"COMMENT ON DATABASE\"$dbname\" IS '$dbcomment'"
202202
if ["$?"-ne 0 ];then
203203
echo"$CMDNAME: comment creation failed (database was created)"1>&2
204204
exit 1

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp