Commit e7f4923d authored by Michael Meskes's avatar Michael Meskes

Reverting patch just in case a compiler treats this enum as signed.

parent fa89e18f
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * 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) ...@@ -2385,7 +2385,7 @@ PQresultStatus(const PGresult *res)
char * char *
PQresStatus(ExecStatusType status) 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 libpq_gettext("invalid ExecStatusType code");
return pgresStatus[status]; return pgresStatus[status];
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment