Bug #45416 Let statement id to be fetchable by client API
Submitted: 9 Jun 22:17
Reporter: Sveta Smirnova
Status: Verified
Category:Server Severity:S4 (Feature request)
Version:5.1, 6.0 bzr OS:Any
Assigned to: Target Version:
Triage: Needs Triage: D5 (Feature request)

[9 Jun 22: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 22:18] Sveta Smirnova
See also bug #45387