--grab creates NUMERIC/DECIMAL with dec as floats
Brought to you by:
majek
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 .
length also must be set, and interpreted in NumberGenerator to avoid truncation errors
fixed!