aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc G. Fournier <scrappy@hub.org>1997-09-28 10:05:15 +0000
committerMarc G. Fournier <scrappy@hub.org>1997-09-28 10:05:15 +0000
commitfb269b46752b1cd6a48824bb30ba15460064d529 (patch)
tree36ccb49f548fe0c75dadf96c95342ca2e01bc4d1
parent9cd2680f93b6f35a0660293ba2e86a461603122e (diff)
downloadpostgresql-fb269b46752b1cd6a48824bb30ba15460064d529.tar.gz
postgresql-fb269b46752b1cd6a48824bb30ba15460064d529.zip
From: CNT systemen BV <cntsys@cistron.nl>
I've found a problem in the Postgresql jdbc driver. "ReceiveInteger" shifts a received byte right instead of left. This means that only the least significant byte is read into the int. Reviewed by: Peter T Mount <patches@maidast.demon.co.uk>
-rw-r--r--src/interfaces/jdbc/postgresql/PG_Stream.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interfaces/jdbc/postgresql/PG_Stream.java b/src/interfaces/jdbc/postgresql/PG_Stream.java
index 3e3350dd10d..59804c6dc6b 100644
--- a/src/interfaces/jdbc/postgresql/PG_Stream.java
+++ b/src/interfaces/jdbc/postgresql/PG_Stream.java
@@ -156,7 +156,7 @@ public class PG_Stream
if (b < 0)
throw new IOException("EOF");
- n = n | (b >> (8 * i)) ;
+ n = n | (b << (8 * i)) ;
}
} catch (IOException e) {
throw new SQLException("Error reading from backend: " + e.toString());