mirror of
https://github.com/postgres/postgres.git
synced 2026-06-09 08:42:38 -04:00
Reverting patch just in case a compiler treats this enum as signed.
This commit is contained in:
parent
fa89e18f09
commit
e7f4923d3b
1 changed files with 2 additions and 2 deletions
|
|
@ -8,7 +8,7 @@
|
|||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-exec.c,v 1.201 2009/05/21 12:54:27 meskes Exp $
|
||||
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-exec.c,v 1.202 2009/05/27 14:16:51 meskes Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
|
|
@ -2385,7 +2385,7 @@ PQresultStatus(const PGresult *res)
|
|||
char *
|
||||
PQresStatus(ExecStatusType status)
|
||||
{
|
||||
if (status >= sizeof pgresStatus / sizeof pgresStatus[0])
|
||||
if (status < 0 || status >= sizeof pgresStatus / sizeof pgresStatus[0])
|
||||
return libpq_gettext("invalid ExecStatusType code");
|
||||
return pgresStatus[status];
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue