Page 1 of 1

Firebird EXECUTE BLOCK RETURNING CURSOR

Posted: Mon 24 Sep 2018 01:17
by jynghyun
I'm creating EXECUTE BLOCK statement which returns cursor.

UniQuery1.SQL.Text := '..block statement..';
UniQuery1.Open;

But UniQuery does not work with the statement. The statement is tested in public fb manager and works well.

Can you help me?

Re: Firebird EXECUTE BLOCK RETURNING CURSOR

Posted: Mon 24 Sep 2018 10:34
by jynghyun
I found It is because I used "?" instead ":" for parameter.

One more question.

Can you some code to get Return value of "Execute block statement" without using suspend?

i.e I just execsql and read return value as params.

Re: Firebird EXECUTE BLOCK RETURNING CURSOR

Posted: Tue 25 Sep 2018 08:42
by ViktorV
Firebird does not allow returning output parameters "EXECUTE BLOCK" without calling SUSPEND: https://firebirdsql.org/file/documentat ... ock-params