mirror of
https://github.com/postgres/postgres.git
synced 2025-09-08 00:47:37 +03:00
Message style fixes
This commit is contained in:
@@ -48,8 +48,8 @@ pg_atoi(const char *s, int size, int c)
|
||||
if (*s == 0)
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_INVALID_TEXT_REPRESENTATION),
|
||||
errmsg("invalid input syntax for %s: \"%s\"",
|
||||
"integer", s)));
|
||||
errmsg("invalid input syntax for integer: \"%s\"",
|
||||
s)));
|
||||
|
||||
errno = 0;
|
||||
l = strtol(s, &badp, 10);
|
||||
@@ -58,8 +58,8 @@ pg_atoi(const char *s, int size, int c)
|
||||
if (s == badp)
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_INVALID_TEXT_REPRESENTATION),
|
||||
errmsg("invalid input syntax for %s: \"%s\"",
|
||||
"integer", s)));
|
||||
errmsg("invalid input syntax for integer: \"%s\"",
|
||||
s)));
|
||||
|
||||
switch (size)
|
||||
{
|
||||
@@ -102,8 +102,8 @@ pg_atoi(const char *s, int size, int c)
|
||||
if (*badp && *badp != c)
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_INVALID_TEXT_REPRESENTATION),
|
||||
errmsg("invalid input syntax for %s: \"%s\"",
|
||||
"integer", s)));
|
||||
errmsg("invalid input syntax for integer: \"%s\"",
|
||||
s)));
|
||||
|
||||
return (int32) l;
|
||||
}
|
||||
|
Reference in New Issue
Block a user