INSERT into updatable view without explicit field list failed [CORE5454] #5725
Submitted by: @romansimakov
CREATE DATABASE 'upd_view.fdb' PAGE_SIZE 16384;
CREATE TABLE DOC1 (ID INTEGER NOT NULL,
CREATE TABLE DOC2 (ID INTEGER NOT NULL,
CREATE VIEW V (ID, NAME, DATA)
SET TERM ^;
CREATE TRIGGER V_INS FOR V BEFORE INSERT
SET TERM ;^
INSERT INTO V (ID, NAME, DATA) VALUES (0, '0', '0');
INSERT INTO DOC1 VALUES (1, '1', '1');
INSERT INTO V VALUES (2, '2', '2'); -- << failed
The text was updated successfully, but these errors were encountered:
Commented by: @dyemanov
Now we have a regression:
SQL> recreate table test(x int, y int);
Commented by: @asfernandes
Dmitry, of course, fix for this bug would cause this behaviour (with is described as the bug itself).
In my opinion, usage of INSERT without field list is ad-hoc command, so I think we can live with it. It's a reason this was not backported.
Also, AFAIU absense of computed fields in implicit field/value list is a non-standard behavior.