Subject | Re: [firebird-support] INTEGER BUG |
---|---|
Author | Helen Borrie |
Post date | 2009-05-05T12:22:41Z |
At 09:57 PM 5/05/2009, you wrote:
./hb
>Integer OverflowResult has scale of 19 (10 + 4 + 3 + 1 + 1), i.e., > 18
>
>Why do we get an integer overflow with this code:
>
>select
> cast(1.000 as numeric(18,10)) * 1.0000 * 1.000 * 1.0 * 1.0 from
> rdb$database
>but not this one?Result has scale of 17 (10 + 4 + 1 + 1 + 1, i.e. < 18
>
>select
> cast(1.000 as numeric(18,10)) * 1.0000 * 1.0 * 1.0 * 1.0 from
> rdb$database
>Never mind why I would want to do anything as pointless as multiplying lots of ones together, but a more complex calculation reduced to this should not crash.Your bug, dear. ;-)
>Firebird 2.1.1.17910 on a number of windows systems
>and Firebird 2.1.0.17798
>
>This is a SERIOUS BUG!! Help!!
./hb