I have a stored procedure where I"m passing a value (from CHARACTER(13) with CSSID 65535 and trying to return an ID by it
The procedure is:
BEGIN
DECLARE GET_ID_BY_WEB_IDENTIFIER_C1 CURSOR WITH RETURN FOR
SELECT ID FROM TABLE . ITEMT WHERE WEB_IDENTIFIER = P_WEB_IDENTIFIER ;
OPEN GET_ID_BY_WEB_IDENTIFIER_C1 ;
END
and the parameter P_WEB_IDENTIFIER Is a CHARACTER(26) with a matching cssid. I've also tried this with it being a character 13 with same results.
When I call this:
CALL PROGRAM . GET_ID_BY_WEB_IDENTIFIER (x'0213725501A421B9A457123001')
I get back my ID, but when I call like this (as it is called in production through the web):
CALL PROGRAM . GET_ID_BY_WEB_IDENTIFIER ('0213725501A421B9A457123001')
I get a conversion error
How can I make sure that passing only the string '0213725501A421B9A457123001' will return my ID this way?