Commit fb269b46 authored by Marc G. Fournier's avatar Marc G. Fournier

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>
parent 9cd2680f
...@@ -156,7 +156,7 @@ public class PG_Stream ...@@ -156,7 +156,7 @@ public class PG_Stream
if (b < 0) if (b < 0)
throw new IOException("EOF"); throw new IOException("EOF");
n = n | (b >> (8 * i)) ; n = n | (b << (8 * i)) ;
} }
} catch (IOException e) { } catch (IOException e) {
throw new SQLException("Error reading from backend: " + e.toString()); throw new SQLException("Error reading from backend: " + e.toString());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment