mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-21 08:29:39 +08:00
applied Kris Jurka's patch for numeric
This commit is contained in:
parent
3acf422316
commit
893678eda7
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user