[CONJS-38] Add connection reset Created: 2018-07-19  Updated: 2018-10-28  Resolved: 2018-10-26

Status: Closed
Project: MariaDB Connector/node.js
Component/s: API
Affects Version/s: None
Fix Version/s: 2.0.1-beta

Type: Task Priority: Major
Reporter: Diego Dupin Assignee: Diego Dupin
Resolution: Fixed Votes: 0
Labels: None


 Description   

Must have a new public method "reset" to the connection.
This must permit to reset connection entirely (based on https://mariadb.com/kb/en/library/com_reset_connection/), to :

  • rollback any open transaction
  • reset transaction isolation level
  • reset session variables
  • delete user variables
  • remove temporary tables
  • remove all PREPARE statement

Pool implementation must provide an option to reset completely the connection when given back to pool, replacing rollback command.

This has not to be the default since most of the time, this is not needed and will just add a new useless exchange with the server.
Still, this adds some security, for applications that needs strong isolation, like not permitting reusing a connection that has a temporary table with data...


Generated at Thu Feb 08 03:22:18 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.