HHH-13873 IdTableHelper can skip opening a connection when there's no statements to execute

This commit is contained in:
w1ida 2020-02-12 11:09:29 +08:00 committed by Sanne Grinovero
parent 1364929fe0
commit 28b8cebf9d
1 changed files with 3 additions and 0 deletions

View File

@ -61,6 +61,9 @@ public class IdTableHelper {
List<String> creationStatements,
JdbcServices jdbcServices,
JdbcConnectionAccess connectionAccess) {
if ( creationStatements == null || creationStatements.isEmpty() ) {
return;
}
try {
Connection connection;
try {