Subject | Re: [firebird-support] firebird 2.1 |
---|---|
Author | Helen Borrie |
Post date | 2008-04-25T10:09:47Z |
At 05:09 PM 25/04/2008, you wrote:
./heLen
>Now the linkJust don't try to raise the scale of the column - it is illegal now. ;-) Fb 2.0.x and also Fb 1.5.x allowed it, and it would (potentially) permit an overflow of the implemented precision limit and corrupt the database. That was a bug.
>http://tracker.firebirdsql.org/browse/CORE-1162
>works for me.
>
>I do not understand what am I supposed to do.
>this is the exact description of my problem :Your "history" ("I could do this in v.2.0.x") shows how the bug exhibited itself and your "problem" demonstrates that the bug is fixed.
><<<
>SQL> create table tab ( a numeric(4,2) );
>SQL> insert into tab values (99.99);
>SQL> alter table tab alter a type numeric(4,3);
>Statement failed, SQLCODE = -607
>unsuccessful metadata update
>-New scale specified for column A must be at most 2.
>>>>
./heLen