Fix up warning and error messages to use single-quotes aroun strings.
This commit is contained in:
parent
4fe24467f4
commit
60ed8bbe75
@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/init/miscinit.c,v 1.22 1998/09/01 04:33:15 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/init/miscinit.c,v 1.23 1998/10/05 02:48:49 thomas Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -236,12 +236,12 @@ SetDatabaseName(char *name)
|
||||
|
||||
#ifndef MULTIBYTE
|
||||
/* even if MULTIBYTE is not enabled, this function is neccesary
|
||||
* since pg_proc.h does have.
|
||||
* since pg_proc.h has an entry for it.
|
||||
*/
|
||||
const char *
|
||||
getdatabaseencoding()
|
||||
{
|
||||
elog(ERROR, "you need to enable MB to use this function");
|
||||
elog(ERROR, "MultiByte strings (MB) must be enabled to use this function");
|
||||
return ("");
|
||||
}
|
||||
|
||||
@ -421,13 +421,13 @@ SetPgUserName()
|
||||
{
|
||||
/* use the (possibly) authenticated name that's provided */
|
||||
if (!(p = getenv("PG_USER")))
|
||||
elog(FATAL, "SetPgUserName: PG_USER environment variable unset");
|
||||
elog(FATAL, "SetPgUserName: PG_USER environment variable is unset");
|
||||
}
|
||||
else
|
||||
{
|
||||
/* setuid() has not yet been done, see above comment */
|
||||
if (!(pw = getpwuid(geteuid())))
|
||||
elog(FATAL, "SetPgUserName: no entry in passwd file");
|
||||
elog(FATAL, "SetPgUserName: no entry in host passwd file");
|
||||
p = pw->pw_name;
|
||||
}
|
||||
if (UserName)
|
||||
@ -473,7 +473,7 @@ SetUserId()
|
||||
PointerGetDatum(userName),
|
||||
0, 0, 0);
|
||||
if (!HeapTupleIsValid(userTup))
|
||||
elog(FATAL, "SetUserId: user \"%s\" is not in \"%s\"",
|
||||
elog(FATAL, "SetUserId: user '%s' is not in '%s'",
|
||||
userName,
|
||||
ShadowRelationName);
|
||||
UserId = (Oid) ((Form_pg_shadow) GETSTRUCT(userTup))->usesysid;
|
||||
|
Loading…
x
Reference in New Issue
Block a user