Skip to content

Support query attributes #930

Closed
@bgrainger

Description

@bgrainger

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions