Recalculating computed fields that depend on altering field -----------------------------------------------------------
Key: CORE-5633 URL: http://tracker.firebirdsql.org/browse/CORE-5633 Project: Firebird Core Issue Type: Bug Components: Engine Affects Versions: 4.0 Alpha 1, 3.0.2, 2.5.7, 3.0.1, 2.5.6, 3.0.0 Environment: Ubuntu 17.04 x86_64 Linux 4.10 Reporter: Vasiliy Yashkov When field is altered, a computed fields, that depend on it, don't altered. Example: create table test(f1 varchar(6)); commit; create table test1(f1 integer, f2 computed by((select first 1 f1 from test))); commit; create view v1 as select f1 from test; commit; alter table test alter column f1 type varchar(8); commit; insert into test(f1) values('qwertyqw'); commit; insert into test1(f1) values(1); commit; select * from test1; --arithmetic exception, numeric overflow, or string truncation -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://tracker.firebirdsql.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel