From: Dave Cramer Date: Fri, 7 Feb 2003 12:47:29 +0000 (+0000) Subject: applied Kris Jurka's patch for numeric X-Git-Tag: REL7_4_BETA1~1099 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=893678eda7de9db57beccfd2755836c1bea39112;p=thirdparty%2Fpostgresql.git applied Kris Jurka's patch for numeric --- diff --git a/src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1DatabaseMetaData.java b/src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1DatabaseMetaData.java index 9e217f7f24f..0d0ba7f00f5 100644 --- a/src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1DatabaseMetaData.java +++ b/src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1DatabaseMetaData.java @@ -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();