Skip to content

Commit

Permalink
added comment
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonioG70 committed Jun 26, 2024
1 parent 391bcb0 commit aa07ada
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,10 @@ protected Type getNumericType(String typeName, int columnSize, int decimalDigits
// The maximum allowed precision when explicitly specified in the type
// declaration is 1000, so if we find more than that it means that this type was
// declared without precision nor scale

//20240626 alindo: when upgrading the conector to version 42.7.3 it sets the data type
// scale and precision to 0 when they are not specified which is against SIARD specification
// https://github.com/pgjdbc/pgjdbc/issues/2188
if (columnSize == 0) {
type.setSql99TypeName("NUMERIC", NUMERIC_MAX_PRECISION_NUMBER, NUMERIC_MAX_SCALE_NUMBER);
type.setSql2008TypeName("NUMERIC", NUMERIC_MAX_PRECISION_NUMBER, NUMERIC_MAX_SCALE_NUMBER);
Expand Down

0 comments on commit aa07ada

Please sign in to comment.