psqlodbc.git / summary / log / commit / refs
commit 888fa952dc6246d569cfc1919d58237aaa4970b3
Author: Bruce Momjian <bruce@momjian.us>
Date: Wed Feb 16 23:07:31 2000 +0000
Package: postgresql
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 |
connection.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/connection.c b/connection.c
index 0d805a4..bf67b9e 100644
--- a/connection.c
+++ b/connection.c
@@ -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
[parent: 1ec3a4c40463]