Skip to content

Commit 893678e

Browse files
author
Dave Cramer
committed
applied Kris Jurka's patch for numeric
1 parent 3acf422 commit 893678e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1DatabaseMetaData.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2352,7 +2352,7 @@ public java.sql.ResultSet getColumns(String catalog, String schemaPattern, Strin
23522352
}
23532353
else if (pgType.equals("numeric") || pgType.equals("decimal"))
23542354
{
2355-
int attypmod = rs.getInt(8) - VARHDRSZ;
2355+
int attypmod = rs.getInt("atttypmod") - VARHDRSZ;
23562356
tuple[6] = Integer.toString( ( attypmod >> 16 ) & 0xffff ).getBytes();
23572357
tuple[8] = Integer.toString(attypmod & 0xffff).getBytes();
23582358
tuple[9] = "10".getBytes();

0 commit comments

Comments
 (0)