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:
Marc G. Fournier 1997-09-28 10:05:15 +00:00
parent 9cd2680f93
commit fb269b4675
1 changed files with 1 additions and 1 deletions

View File

@ -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());