grails/grails-core — pull request #166 by johnrengelman (2012-02-27 23:02:23+00:00)
Title: GRAILS-8444, GRAILS-8486

A previous fix is applying a ColumnConfig to the hibernate Column in GrailsDomainBinder. The ColumnConfig is created for a domain property if it is specified in the mapping block of the Domain Class. If not all the values are specified (i.e. scale, length, precision), then the default values (which are invalid) are being applied to the column. This includes -1 for length, precision, and scale.

Instead the bindColumnConfigToColumn(Column, ColumnConfig) method should only apply those values from the ColumnConfig that are specified and valid to the Column.