Upgrade Guides for Genero BDL / 2.2x upgrade guide |
dbi.database.<dbname>.ifxemul.datatype.serial.emulation = "regtable"
Version 2.20 introduces the BIGINT data type, which is a 64-bit signed integer. You can use BIGSERIAL or SERIAL8 columns with IBM® Informix®, and ODI drivers can emulate 64-bit serials in other database servers. However, if you are using serial emulation based on the SERIALREG table, you must redefine this table to change the LASTSERIAL column data type to a BIGINT. If the BIGINT data type is not supported by the database server, you can use a DECIMAL(20,0) instead:
CREATE TABLE serialreg ( tablename VARCHAR2(50) NOT NULL, lastserial BIGINT NOT NULL, PRIMARY KEY ( tablename ) )
ALTER TABLE serialreg ALTER COLUMN lastserial BIGINT NOT NULL
Additionally, all existing SERIALREG-based triggers must be modified, in order to use BIGINT instead of INTEGER variables, otherwise you will get BIGINT to INTEGER overflow errors. For example, to modify existing triggers with SQL Server, you can use the ALTER TRIGGER statement, which can be easily generated from the database browser tool (there is a modify option in the contextual menu of triggers). After the existing trigger code was generated, you must edit the code to replace the INTEGER data type by BIGINT in the variable declarations, and execute the ALTER TRIGGER statement.