]> granicus.if.org Git - postgresql/commitdiff
Package: postgresql
authorBruce Momjian <bruce@momjian.us>
Wed, 16 Feb 2000 23:07:31 +0000 (23:07 +0000)
committerBruce Momjian <bruce@momjian.us>
Wed, 16 Feb 2000 23:07:31 +0000 (23:07 +0000)
Version: 6.5.3-11
Severity: important

'char' is not a signed type by default on powerpc; therefore a character
can
never be equal to EOF (-1).  A patch is attached.

Dan

/--------------------------------\  /--------------------------------\
|       Daniel Jacobowitz        |__|        SCS Class of 2002       |

src/interfaces/odbc/connection.c

index 0d805a413a7739c451383ad9f573e79ec3161994..bf67b9e61633e5a0c43d5c37d229d354d08fd212 100644 (file)
@@ -822,7 +822,8 @@ QResultClass *
 CC_send_query(ConnectionClass *self, char *query, QueryInfo *qi)
 {
 QResultClass *result_in, *res = NULL;
-char id, swallow;
+char swallow;
+int id;
 SocketClass *sock = self->sock;
 static char msgbuffer[MAX_MESSAGE_LEN+1];
 char cmdbuffer[MAX_MESSAGE_LEN+1];     // QR_set_command() dups this string so dont need static