From: Peter Brawley Date: November 24 2005 6:11pm Subject: Re: Using a Stored Procedure that returns a resultset List-Archive: http://lists.mysql.com/mysql/192142 Message-Id: <4386026B.1080700@earthlink.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=======AVGMAIL-4386026C1751=======" --=======AVGMAIL-4386026C1751======= Content-Type: multipart/alternative; boundary=------------030601050504070306040708 --------------030601050504070306040708 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi Martijn >I tried that, but in Delphi with the particular component-set I'm using, >this raises: mySQL Error Code: (1312) >PROCEDURE test.p_Select() can't return a result set in the given context Ah, you're not the first to have that error message, eg see the discussions at http://forums.mysql.com/read.php?98,40521,41706 http://forums.mysql.com/read.php?98,42347,42347#msg-42347 http://bugs.mysql.com/bug.php?id=12335 http://forums.mysql.com/read.php?98,48703,49918 Not sure which of those approaches will work for you. PB ----- Martijn Tonies wrote: >> >CREATE PROCEDURE P_Select() >> >READS SQL DATA >> >begin >> >select * from enum_table; >> >end >> >How would I get a resultset? >> >>No need for an OUT param, just call the sproc, you'll see. >> >> > >I tried that, but in Delphi with the particular component-set I'm using, >this >raises: >mySQL Error Code: (1312) >PROCEDURE test.p_Select() can't return a result set in the given context > >With regards, > >Martijn Tonies >Database Workbench - tool for InterBase, Firebird, MySQL, Oracle & MS SQL >Server >Upscene Productions >http://www.upscene.com >Database development questions? Check the forum! >http://www.databasedevelopmentforum.com > > > > > --------------030601050504070306040708 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit
--------------030601050504070306040708-- --=======AVGMAIL-4386026C1751======= Content-Type: text/plain; x-avg=cert; charset=us-ascii Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Content-Description: "AVG certification" No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.362 / Virus Database: 267.13.7/181 - Release Date: 11/24/2005 --=======AVGMAIL-4386026C1751=======-->CREATE PROCEDURE P_Select() >READS SQL DATA >begin >select * from enum_table; >end >How would I get a resultset? No need for an OUT param, just call the sproc, you'll see.I tried that, but in Delphi with the particular component-set I'm using, this raises: mySQL Error Code: (1312) PROCEDURE test.p_Select() can't return a result set in the given context With regards, Martijn Tonies Database Workbench - tool for InterBase, Firebird, MySQL, Oracle & MS SQL Server Upscene Productions http://www.upscene.com Database development questions? Check the forum! http://www.databasedevelopmentforum.com