Subject | Re: [Firebird-Architect] RFC: Please unify stored procedure execution |
---|---|
Author | Martijn Tonies |
Post date | 2004-12-21T10:08:02Z |
> M> EXECutable procedures can have output parameters just fine.Except if there's no SUSPEND in them. Try this:
>
> ...so calling them through select won't hurt. ;-)
SET TERM ^^ ;
CREATE PROCEDURE CALL_TEST returns (
POOUT Integer)
AS
begin
POOUT = 1;
end
^^
SET TERM ; ^^
commit;
select * from call_test
--> no rows returned.
> M> What we really need ( I agree somewhat with the proposal ) is thea
> M> server saying, "well, here's a resultset. It's not a SUSPEND inflicted
> M> resultset, so there's only 1 row." and "well, here's a resultset. It's
> M> SUSPEND inflicted resultset, so there might be more rows."Naah, don't agree here. And Roman doesn't agree either, because he is
>
> Mmm... I don't think so. A mechanism for signaling when a resultset is
> finished already exists, the client just has to "fetch until eof".
> What Roman is missing (as I understand) is something to help telling
> what kind of call syntax to use *beforehand*. As I explained, I think
> it would be useful but I don't find it strictly needed as we already
> can do without.
facing the same problems as we all do.
With regards,
Martijn Tonies
Database Workbench - developer tool for InterBase, Firebird, MySQL & MS SQL
Server
Upscene Productions
http://www.upscene.com