Re: Precision = Scale?

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Wed Dec 01 2004 - 17:00:30 EST

  • Next message: Gentry, Michael: "RE: Precision = Scale?"

    > In the Cayenne Modeler, under DbEntity/Attributes, does the "Precision"
    > column equal the scale for a DECIMAL? For example, if you have a
    > DECIMAL(12,2) is the "Max Length" = 12 and the "Precision" = 2? If so,
    > can the maximum length be omitted?
    >
    > Thanks,
    >
    > /dev/mrg

    Yeah, the naming is somewhat unfortunate (we may need to change this in
    the future)... Precision is really decimal scale. For DECIMAL columns
    schema generation purposes if max length is not set, precision
    (umm...scale) is ignored.

    Andrus



    This archive was generated by hypermail 2.0.0 : Wed Dec 01 2004 - 17:00:32 EST