Hi I would like to call an oracle stored multiple times, passing different parameters.
It seems only the first call is successful.
Any idea what is the correct syntax ?
begin
storedproc1(param1, parm2);
storedproc1(param3, parm4);
end;
I have also tried
FME_SQL_DELIMITER /
begin
storedproc1(param1, parm2);
storedproc1(param3, parm4);
end;
/
Best answer by david_r
No error. Simply the first call works. The rest doesn't.
If I create multiple (12) SQLExecutor and make one call in each, all work.
This implies an issue in the syntax when having multiple calls. Could it be that I need a delay somewhere?
You could always try the following, to see if it makes a difference:
FME_SQL_DELIMITER / begin storedproc1(param1, parm2); end; / begin storedproc1(param3, parm4); end; /
But I would recommend that you try start by looking into what's happening on the database server. In principle, FME does nothing more than splitting up the statements according to the FME_SQL_DELIMITER and sending each block to the database as-is. So my first hunch would be to start looking there.
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.
No error. Simply the first call works. The rest doesn't.
If I create multiple (12) SQLExecutor and make one call in each, all work.
This implies an issue in the syntax when having multiple calls. Could it be that I need a delay somewhere?
You could always try the following, to see if it makes a difference:
FME_SQL_DELIMITER / begin storedproc1(param1, parm2); end; / begin storedproc1(param3, parm4); end; /
But I would recommend that you try start by looking into what's happening on the database server. In principle, FME does nothing more than splitting up the statements according to the FME_SQL_DELIMITER and sending each block to the database as-is. So my first hunch would be to start looking there.