SYNTAX_ERROR: line 26:7: Unexpected parameters (varchar) for function substr

0

SELECT T1."PDC_CODE" "c1", substr(cast(T2."RECEIVING_DATE" as varchar)) "c2", sum(T2."QTY_RECEIVED") "c3", T3."SUPPLIER_SOURCE" "c4"

SYNTAX_ERROR: line 26:7: Unexpected parameters (varchar) for function substr. Expected: substr(varchar(x), bigint, bigint) , substr(varchar(x), bigint) , substr(char(x), bigint) , substr(char(x), bigint, bigint) , substr(varbinary, bigint, bigint) , substr(varbinary, bigint)

asked a year ago345 views
1 Answer
0

Hello,

A parameter parameter's value is not compatible with the corresponding type. For example: {% if parameters.change_value._parameter_value == "'AA'" %}. Review the parameter type to ensure that the value evaluates correctly (type: string versus type: unquoted).

AWS
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions