Posted: Thu Jul 17, 2014 12:02 pm Post subject: Oracle Database date to ESQL function parameter input
Apprentice
Joined: 08 May 2014 Posts: 35
Hi All,
I have written a method in esql which accepts date as one of the parameters:
Code:
CREATE FUNCTION getLastInstallmentDate(IN piDate DATE,IN piMonths INTEGER) RETURNS DATE
BEGIN
DECLARE lastInstallmentDate DATE;
SET lastInstallmentDate = getFlowStartDate(piDate);
SET lastInstallmentDate = lastInstallmentDate + CAST(piMonths AS INTERVAL MONTH);
RETURN lastInstallmentDate;
END;
Now when i m trying to use this esql in the custom esql transformation mapping and connecting the date which i have selected from the Oracle databse, this gives me an error while i m executing the flow that the type of number 1 element is not correct.
Where as when i try to pass fn:current-date to the same method it works fine.
Am i missing something on the date conversion before passing it to the ESQL method..
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum