Bug #9121 | CLIENT_MULTI_STATEMENTS works with mysql_real_query but not mysql_stmt_prepare | ||
---|---|---|---|
Submitted: | 11 Mar 2005 6:47 | Modified: | 11 Mar 2005 21:49 |
Reporter: | Hasani | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Documentation | Severity: | S3 (Non-critical) |
Version: | 4.1 | OS: | Windows (Win32) |
Assigned to: | Paul DuBois | CPU Architecture: | Any |
[11 Mar 2005 6:47]
Hasani
[11 Mar 2005 16:11]
Paul DuBois
Prepared statements don't support multi-statements. This is a documentation issue so I am assigning it to myself and changing the category to Documentation.
[11 Mar 2005 16:48]
Hasani
Will this be a feature in a newer version?
[11 Mar 2005 17:06]
Paul DuBois
There are no plans for this. The prepared statement API is designed to work with single statements only.
[11 Mar 2005 21:49]
Paul DuBois
The description for mysql_stmt_prepare() indicates that the statement string must consist of a single statement: http://dev.mysql.com/doc/mysql/en/mysql-stmt-prepare.html I will add a note to the multi-statement section that this capability is available for mysql_query() and mysql_real_query() but not the prepared statement API: http://dev.mysql.com/doc/mysql/en/c-api-multiple-queries.html