Increase performance of SqlExceptionHelper#handleAndClearWarnings

Description

Statement#getWarnings has shown to be an expensive call. Protect it with a log level check – if nothing would be logged, no reason to call it to begin with.

Environment

None

Status

Assignee

Brett Meyer

Reporter

Brett Meyer

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Priority

Major
Configure