I have stored procedure called like this:
call packagename.StoredProc('''A'',''B''')
'A', 'B' part is then meant to be used as parameter in procedure's code in the IN clause.
When I run that code with in clause as paramvalue IN ('A', 'B')
it returns rows as expected.
But when call to stored proc is executed no rows which makes me think those quotes must be wrong but I can't get it right apparently. Can anyone see why is this not working? Thanks
Code from proc:
SELECT COUNT(*)
INTO v_PendingCheckCount
FROM FUND_CHANGE_REQUEST
WHERE STATUS IN ('PENDING_CHK', 'PEND_2ND_CHK')
AND PROVIDER IN (pProviderList);
Proc call:
CALL PackageName.ProcedureName('''A'',''B''')
pProviderList is parameter passed to procedure.