When uploading metadata, calculated fields can be higher than one of the 
composite fields.
------------------------------------------------------------------------------------------

                 Key: CORE-6149
                 URL: http://tracker.firebirdsql.org/browse/CORE-6149
             Project: Firebird Core
          Issue Type: Bug
          Components: ISQL
    Affects Versions: 2.5.9
         Environment: Windows Server 2016
            Reporter: Valchenko Igor


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))
);





-- 
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

        


Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to