New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to get return value after call stored Procedure for MYSQL #671

mayankahm opened this Issue Aug 6, 2018 · 2 comments


None yet
2 participants

mayankahm commented Aug 6, 2018

HI, I just want to call storeprocedure and get the return value which is being passed in argument of procedure.

Here i mentioned code : please verify and correct me if i wrong.

soci::session *test = new soci::session();
int outputValue;
test->open("mysql", "host=hostaddress db = database_name user =user password = password");
soci::statement proc = (test->prepare << "call spName(:input, :output )",
use(value, "input"),
use(outputValue, "output"); 
std::cout << output << std::endl;

This comment has been minimized.


vadz commented Aug 7, 2018

Don't you need to use into() instead of use() here?


This comment has been minimized.

mayankahm commented Aug 12, 2018

@vadz i have used but not work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment