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

Commite7f4923

Browse files
author
Michael Meskes
committed
Reverting patch just in case a compiler treats this enum as signed.
1 parentfa89e18 commite7f4923

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/interfaces/libpq/fe-exec.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-exec.c,v 1.201 2009/05/21 12:54:27 meskes Exp $
11+
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-exec.c,v 1.202 2009/05/27 14:16:51 meskes Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -2385,7 +2385,7 @@ PQresultStatus(const PGresult *res)
23852385
char*
23862386
PQresStatus(ExecStatusTypestatus)
23872387
{
2388-
if (status >=sizeofpgresStatus /sizeofpgresStatus[0])
2388+
if (status<0||status>=sizeofpgresStatus /sizeofpgresStatus[0])
23892389
returnlibpq_gettext("invalid ExecStatusType code");
23902390
returnpgresStatus[status];
23912391
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp