Skip to content

When uploading metadata, calculated fields can be higher than one of the composite fields. [CORE6149] #6398

Open
@firebird-automations

Description

@firebird-automations

Submitted by: Valchenko Igor (gallemar)

When unloading metadata isql -x , calculated fields must be moved to the end of the list. Example:
Wrong:
CREATE TABLE OPERATIONS (
ID_OPERATION INTEGER NOT NULL ,
NAME_OPERATION VARCHAR(40) NOT NULL ,
DOCTYPE INTEGER,
DOCKIND COMPUTED BY (decode(doctype, -1, 1 - opertype, doctype)),
OPERTYPE INTEGER NOT NULL ,
OPERKIND INTEGER NOT NULL
);

After execution:

Dynamic SQL Error.
SQL error code = -206.
Column unknown.
OPERTYPE.
At line 5, column 61.

correctly:
CREATE TABLE OPERATIONS (
ID_OPERATION INTEGER NOT NULL ,
NAME_OPERATION VARCHAR(40) NOT NULL ,
DOCTYPE INTEGER,
OPERTYPE INTEGER NOT NULL ,
OPERKIND INTEGER NOT NULL ,
DOCKIND COMPUTED BY (decode(doctype, -1, 1 - opertype, doctype))
);

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions