-
Notifications
You must be signed in to change notification settings - Fork 349
Description
MySQL Server 8.0.23 introduces a new feature called "query attributes": Work Item, Documentation.
These are a list of name/value pairs that are sent in the COM_QUERY packet (before the query SQL).
One API possibility would be adding an MySqlParameterCollection MySqlCommand.Attributes { get; } property. This could be lazily-initialised. If non-null and non-empty, the attributes would be serialised into the query packet.
It may be useful to expose a bool MySqlConnection.SupportsQueryAttributes { get; } property so clients can know if this feature is supported. If it's not, setting the Attributes might throw an exception.