MSCEWI2004

Invalid default value.

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

  • No additional user actions are required.

  • For more support, you can email us at [email protected] or post a message to our forums. If you have a contract for support with Mobilize.Net, reach out to your sales engineer and they can direct your support needs.