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:
@ -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();
|
||||
|
Reference in New Issue
Block a user