MSCEWI2007
Output parameter translated as a return statement.
This is a deprecated version of the SnowConvert documentation, please visit the official site HERE.
Severity
Low
Description
This warning is displayed when a Stored Procedure includes parameters with modifiers such as OUT
or INOUT
. Those types of parameters are translated as a return statement in the Stored Procedure body in which an array will be returned with each output value in it. The return statements are being cast to a string data type.
The parameters with modifiers INOUT
have a dual behavior in Teradata. Since there is not an equivalent in Snowflake, they are translated as OUT
parameters and always returned. This may cause that the target procedure returns null in cases where the INOUT
was expected to behave as an IN
one.
Code Example
Input Code:
Output Code:
Recommendations
Instead of using
INOUT
modifier, it is recommended to useIN
orOUT
to be more specific with the parameter role, in order to avoid null returns in the target procedure.If you need more support, you can email us at snowconvert-support@snowflake.com
Last updated