I have a stored procedure like this:
CREATE PROCEDURE Proc_Test(testvalue set(char(1000) not null)) RETURNING int;
DEFINE z char(7000);
LET z = ' ';
FOREACH
select * into z from table(testvalue)
END FOREACH;
return 1;
end procedure;
Due to the change in the requirement I would like to change this stored procedure as:
CREATE PROCEDURE Proc_Test(testvalue char(7000) not null) RETURNING int;
DEFINE z char(7000);
LET z = ' ';
CAST(cvg AS set(char(1000)));
FOREACH
select * into z from table(testvalue)
END FOREACH;
return 1;
end procedure;
I am having some unknown syntax error.
I know the error is here: CAST(cvg AS set(char(1000)));. Do you know better way to cast a variable to another type to convert it at runtime?