Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit893678e

Browse files
author
Dave Cramer
committed
applied Kris Jurka's patch for numeric
1 parent3acf422 commit893678e

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
elseif (pgType.equals("numeric") ||pgType.equals("decimal"))
23542354
{
2355-
intattypmod =rs.getInt(8) -VARHDRSZ;
2355+
intattypmod =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)

[8]ページ先頭

©2009-2025 Movatter.jp