MSCEWI2004

Invalid default value.

This is a deprecated version of the SnowConvert documentation, please visit the official site HERE.

Severity

Low

Description

The DEFAULT TIME / DEFAULT DATE / DEFAULT CURREN_DATE / DEFAULT DEFAULT CURRENT_TIME / DEFAULT CURRENT_TIMESTAMP column specifications are not supported for FLOAT data type.

Code Example

Input Code:

CREATE TABLE T_2004
(
    -- In the output code all of these columns will be FLOAT type
    -- and will include the MSCEWI2004 message.
    COL1 FLOAT DEFAULT TIME,
    COL2 FLOAT DEFAULT DATE,
    COL3 FLOAT DEFAULT CURRENT_DATE,
    COL4 FLOAT DEFAULT CURRENT_TIME,
    COL5 FLOAT DEFAULT CURRENT_TIMESTAMP
);

Output Code:

CREATE TABLE PUBLIC.T_2004
(
-- In the output code all of these columns will be FLOAT type
-- and will include the MSCEWI2004 message.
COL1 FLOAT /*** MSC-WARNING - MSCEWI2004 - DEFAULT CURRENT_TIME NOT VALID FOR DATA TYPE ***/,
COL2 FLOAT /*** MSC-WARNING - MSCEWI2004 - DEFAULT CURRENT_DATE NOT VALID FOR DATA TYPE ***/,
COL3 FLOAT /*** MSC-WARNING - MSCEWI2004 - DEFAULT CURRENT_DATE NOT VALID FOR DATA TYPE ***/,
COL4 FLOAT /*** MSC-WARNING - MSCEWI2004 - DEFAULT CURRENT_TIME NOT VALID FOR DATA TYPE ***/,
COL5 FLOAT /*** MSC-WARNING - MSCEWI2004 - DEFAULT CURRENT_TIMESTAMP NOT VALID FOR DATA TYPE ***/
);

Recommendations

Last updated