diff --git a/src/interfaces/jdbc/postgresql/PG_Stream.java b/src/interfaces/jdbc/postgresql/PG_Stream.java
index 3e3350dd10d6ad61868c8a6156abf2de7c87f5e5..59804c6dc6b4ead83e65107d3df9c618b506dc62 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());