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

Commit60ed8bb

Browse files
author
Thomas G. Lockhart
committed
Fix up warning and error messages to use single-quotes aroun strings.
1 parent4fe2446 commit60ed8bb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

‎src/backend/utils/init/miscinit.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/utils/init/miscinit.c,v 1.22 1998/09/01 04:33:15 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/utils/init/miscinit.c,v 1.23 1998/10/05 02:48:49 thomas Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -236,12 +236,12 @@ SetDatabaseName(char *name)
236236

237237
#ifndefMULTIBYTE
238238
/* even if MULTIBYTE is not enabled, this function is neccesary
239-
* since pg_proc.hdoes have.
239+
* since pg_proc.hhas an entry for it.
240240
*/
241241
constchar*
242242
getdatabaseencoding()
243243
{
244-
elog(ERROR,"you need to enable MB to use this function");
244+
elog(ERROR,"MultiByte strings (MB) must be enabled to use this function");
245245
return ("");
246246
}
247247

@@ -421,13 +421,13 @@ SetPgUserName()
421421
{
422422
/* use the (possibly) authenticated name that's provided */
423423
if (!(p=getenv("PG_USER")))
424-
elog(FATAL,"SetPgUserName: PG_USER environment variable unset");
424+
elog(FATAL,"SetPgUserName: PG_USER environment variableisunset");
425425
}
426426
else
427427
{
428428
/* setuid() has not yet been done, see above comment */
429429
if (!(pw=getpwuid(geteuid())))
430-
elog(FATAL,"SetPgUserName: no entry in passwd file");
430+
elog(FATAL,"SetPgUserName: no entry inhostpasswd file");
431431
p=pw->pw_name;
432432
}
433433
if (UserName)
@@ -473,7 +473,7 @@ SetUserId()
473473
PointerGetDatum(userName),
474474
0,0,0);
475475
if (!HeapTupleIsValid(userTup))
476-
elog(FATAL,"SetUserId: user\"%s\" is not in\"%s\"",
476+
elog(FATAL,"SetUserId: user'%s' is not in'%s'",
477477
userName,
478478
ShadowRelationName);
479479
UserId= (Oid) ((Form_pg_shadow)GETSTRUCT(userTup))->usesysid;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp