提交 fb269b46 编写于 作者: M 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>
上级 9cd2680f
......@@ -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());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册