From fb269b46752b1cd6a48824bb30ba15460064d529 Mon Sep 17 00:00:00 2001 From: "Marc G. Fournier" Date: Sun, 28 Sep 1997 10:05:15 +0000 Subject: [PATCH] From: CNT systemen BV 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 --- src/interfaces/jdbc/postgresql/PG_Stream.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/interfaces/jdbc/postgresql/PG_Stream.java b/src/interfaces/jdbc/postgresql/PG_Stream.java index 3e3350dd10..59804c6dc6 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());