提交 893678ed 编写于 作者: D Dave Cramer

applied Kris Jurka's patch for numeric

上级 3acf4223
......@@ -2352,7 +2352,7 @@ public abstract class AbstractJdbc1DatabaseMetaData
}
else if (pgType.equals("numeric") || pgType.equals("decimal"))
{
int attypmod = rs.getInt(8) - VARHDRSZ;
int attypmod = rs.getInt("atttypmod") - VARHDRSZ;
tuple[6] = Integer.toString( ( attypmod >> 16 ) & 0xffff ).getBytes();
tuple[8] = Integer.toString(attypmod & 0xffff).getBytes();
tuple[9] = "10".getBytes();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册