Open
Description
There should be an easy way to reset the session associated with a connection, like MySQL Connector has. Since MySQL 5.7.2 there is a new "reset connection" packet that will reset the connection state without making a new connection and authenticating (less overhead). Too bad 5.7.2 is way too new :)
MySQL Connector conveniently added a method to generically reset the session by using the new packet when available and falling back to the slower change user packet.
This feature is very useful, especially when interacting with transactions and a connection pool.