Invoke afterStatements only at the end of releasing all statements for a batch

Description

This is a big deal, as each attempt to close the statement will perform some relatively expensive validations on its state; these validations are bound to fail as there are other resources still associated to it, which makes it all pointless: just validate at the end of the batch to save some unneccessary work.

Environment

None

Status

Assignee

Sanne Grinovero

Reporter

Sanne Grinovero

Fix versions

Labels

backPortable

Backport?

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure