Page 1 of 1

PROCEDURE can't return a resultset in the given context

Posted: 12.04.2012, 15:25
by hstijnen
Hi,
I've just started with ZEOS7 in CBuilder XE. In my app in CBuilder6 with ZEOS6 I used a TZReadOnlyQuery wich calls a stored procedure (MySQL): in the SQL property I have "call proc()".

In the new situation I get the error "PROCEDURE can't return a resultset in the given context"

What to do?

Thanks for help

Regards, Henk

Posted: 14.04.2012, 14:17
by EgonHugeist
hstijnen,

can you explain more detailed what's going wrong? Which detailed configurations do you use here?

best regards

Posted: 16.04.2012, 08:12
by hstijnen
The stored proc aProc in MySQL 5.1 returns a resultset (last line such as "select * from sometable").
In the SQL property of a TZReadOnlyQuery I have "call aProc(pars)". And when I call Query->Open() then the error appears.
I think it's the same problem that lelekx reports in http://sourceforge.net/projects/zeoslib/.

In the meantime I have a way around the problem by using here TSQLQeury.

Posted: 16.04.2012, 12:40
by ism
The hundredth again I say, make a project showing the error with the database dump. Quickly Possible find the error

Posted: 19.04.2012, 00:09
by EgonHugeist
hstijnen,

i'm afraid! lelekx wrote his code was almost done! So we've to compare some sources again! It would be great to know which code he has done! What happens? Any suitable debug results?

Michael