mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-02-05 19:09:58 +08:00
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>
This commit is contained in:
parent
9cd2680f93
commit
fb269b4675
@ -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…
Reference in New Issue
Block a user