Bug #72480 | Prepared statement + Stored Procedure + Multiple resutsets | ||
---|---|---|---|
Submitted: | 29 Apr 2014 10:01 | Modified: | 9 Jan 2015 12:53 |
Reporter: | kokos kokou | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / C++ | Severity: | S3 (Non-critical) |
Version: | 1.1.2 | OS: | Windows (7) |
Assigned to: | Hemant Dangi | CPU Architecture: | Any |
Tags: | error code 0, multiple resultsets, prepared statement, stored procedure |
[29 Apr 2014 10:01]
kokos kokou
[1 Jul 2014 12:01]
Hemant Dangi
Hello kokos, Thanks for your interest in MySQL software. It is not a bugs as prepared statement doesn't support multiple statement and results. Please check below text from link http://dev.mysql.com/doc/refman/5.6/en/c-api-multiple-queries.html "The multiple statement and result capabilities can be used only with mysql_query() or mysql_real_query(). They cannot be used with the prepared statement interface. Prepared statement handles are defined to work only with strings that contain a single statement."
[3 Jul 2014 7:44]
Hemant Dangi
Above statement was for multiple queries and not for stored procedure.
[9 Jan 2015 12:53]
Hemant Dangi
MySQL_Prepared_Statement::getMoreResults() functionality is implemented in rev#983 C/C++ 1.1.5 version, so now multiple resultset can be fetched using prepared statement.