From: Marc G. Fournier Date: Sun, 28 Sep 1997 10:05:15 +0000 (+0000) Subject: From: CNT systemen BV X-Git-Tag: REL6_2~46 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fb269b46752b1cd6a48824bb30ba15460064d529;p=thirdparty%2Fpostgresql.git 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 --- 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());