dbTalk Databases Forums  

calling stored procedure with mysql++

mailing.database.mysql-plusplus mailing.database.mysql-plusplus


Discuss calling stored procedure with mysql++ in the mailing.database.mysql-plusplus forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Denis ERCHOFF
 
Posts: n/a

Default calling stored procedure with mysql++ - 11-10-2005 , 06:32 AM






Hi,

I have to call a stored procedure with mysql++.
The procedure is something like

Procedure proc( firstparam varchar(20), second param varchar(20) )
begin
[some code]
select firstReturn, secondReturn;
end

So, i am calling this stored procedure with Query.store() with the sql
"call proc('one','two')".

It returns me an exception , telling me that the procedure can't return
a result set.

How to use stored procedure that retruns some parameters with mysql++ ?

Thanks

--
Denis ERCHOFF

Cell. +39 333 1985619
Email: erchoff (AT) klan (DOT) it


--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw


Reply With Quote
  #2  
Old   
Denis ERCHOFF
 
Posts: n/a

Default Re: calling stored procedure with mysql++ - 11-10-2005 , 08:17 AM






Ok, resolved.

I have added the option "multi_statements" :

Con.set_option( mysqlpp::Connection::Option:pt_multi_statements, true);


Denis ERCHOFF a écrit :

Quote:
Hi,

I have to call a stored procedure with mysql++.
The procedure is something like

Procedure proc( firstparam varchar(20), second param varchar(20) )
begin
[some code]
select firstReturn, secondReturn;
end

So, i am calling this stored procedure with Query.store() with the sql
"call proc('one','two')".

It returns me an exception , telling me that the procedure can't
return a result set.

How to use stored procedure that retruns some parameters with mysql++ ?

Thanks

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.