Bug #45416 Let statement id to be fetchable by client API
Submitted: 9 Jun 2009 20:17
Reporter: Sveta Smirnova Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server Severity:S4 (Feature request)
Version:5.1, 6.0 bzr OS:Any
Assigned to: CPU Architecture:Any

[9 Jun 2009 20:17] Sveta Smirnova
Description:
Internals manual contains information of statement id for prepared statement (at http://forge.mysql.com/wiki/MySQL_Internals_ClientServer_Protocol#Execute_Packet_.28Tentat...), but this id can not be used by clients, although in some cases it is useful.

How to repeat:
See description

Suggested fix:
Make statement id fetchable in API, also make it session and global variable, so other connections will use it.
[9 Jun 2009 20:18] Sveta Smirnova
See also bug #45387