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>
pull/50/head
Marc G. Fournier 28 years ago
parent 9cd2680f93
commit fb269b4675
  1. 2
      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());

Loading…
Cancel
Save