1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-30 21:42:05 +03:00

applied Kris Jurka's patch for numeric

This commit is contained in:
Dave Cramer
2003-02-07 12:47:29 +00:00
parent 3acf422316
commit 893678eda7

View File

@ -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();