Menu

#8 --grab creates NUMERIC/DECIMAL with dec as floats

open
nobody
None
5
2012-12-07
2012-11-23
Flo
No

this happens in SchemaGrabber#suggestGenerator(...)

else if (dataType == Types.DECIMAL || dataType == Types.NUMERIC) {
if (decimalDigits > 0) {
numGen.setReturnedType("float");
numGen.setScale(decimalDigits);
} else {
numGen.setReturnedType("integer");
}

fix could be:
"float" --> "numeric"

this bug is probably not difficult to fix - but unfixed it can lead
to truncation errors when inserting .

Discussion

  • Flo

    Flo - 2012-11-23

    length also must be set, and interpreted in NumberGenerator to avoid truncation errors

     
  • Flo

    Flo - 2012-12-07

    fixed!

     

Log in to post a comment.