PROCEDURE can't return a resultset in the given context

The alpha/beta tester's forum for ZeosLib 7.0.x series

Report problems concerning our Delphi 2009+ version and new Zeoslib 7.0 features here.

This is a forum that will be removed once the 7.X version goes into stable!!

Moderators: gto, EgonHugeist, olehs

Locked
hstijnen
Junior Boarder
Junior Boarder
Posts: 32
Joined: 11.04.2012, 08:49

PROCEDURE can't return a resultset in the given context

Post 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
User avatar
EgonHugeist
Zeos Project Manager
Zeos Project Manager
Posts: 1936
Joined: 31.03.2011, 22:38

Post by EgonHugeist »

hstijnen,

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

best regards
Best regards, Michael

You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/

Image
hstijnen
Junior Boarder
Junior Boarder
Posts: 32
Joined: 11.04.2012, 08:49

Post 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.
ism
Zeos Test Team
Zeos Test Team
Posts: 202
Joined: 02.10.2010, 20:48

Post by ism »

The hundredth again I say, make a project showing the error with the database dump. Quickly Possible find the error
Lazarus 1.0.8 fpc 2.6.0
User avatar
EgonHugeist
Zeos Project Manager
Zeos Project Manager
Posts: 1936
Joined: 31.03.2011, 22:38

Post 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
Best regards, Michael

You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/

Image
Locked