Subject | Re: Re[2]: [Firebird-Architect] RFC: Please unify stored procedure execution |
---|---|
Author | Vlad Horsun |
Post date | 2004-12-21T11:33:27Z |
> In IB/Fb, there is only 1 type of call to a procedure. But, in Java speak,And MSSQL procedure can return both outputs and resultset. Does
> when you "call" a procedure, it can be a procedure on any database engine.
> Next, this procedure can return output parameters OR it can return a
> resultset. (eg: a MS SQL procedure). So, Java has a facility to return a
> resultset from a stored procedure call.
Java has problem with it ? And how about multiply resultsets with different
columns ? ;-)
> To convert this generic Java-calling mechanism to Firebird, you should useIf SP has outputs - do SELECT else do EXECUTE. What is wrong with it ?
> either EXEC or SELECT (when you want to return a resultset). The problem
> is, that with Firebird, you cannot really know if it returns a resultset.
> That is
> the problem.
If SP has no SUSPEND - this is not a "generic Java-calling mechanism"
problem ;)
Regards,
Vlad