MSCEWI3112

DBMS_RANDOM.VALUE Built-In Package precision is lower in Snowflake

Severity

Low

Description

This message is shown when SnowConvert migrates a DBMS_RANDOM.VALUE Oracle built-in package function. This warning indicates that the UDF added to emulate the functionality has lower precision than the original function.

Example code

Input Code:

CREATE OR REPLACE PROCEDURE built_in_package_proc
IS
var1 NUMBER;
BEGIN
    SELECT DBMS_RANDOM.VALUE() INTO var1 FROM DUAL;

    SELECT DBMS_RANDOM.VALUE(2,10) INTO var1 FROM DUAL; 
END;

Output Code:

Recommendations

  • No additional user actions are required.

  • If you need more support, you can email us at [email protected]

Last updated