diff --git a/fine-hibernate/src/main/java/com/fr/third/org/hibernate/tool/schema/internal/AbstractSchemaMigrator.java b/fine-hibernate/src/main/java/com/fr/third/org/hibernate/tool/schema/internal/AbstractSchemaMigrator.java index ebaec03e6..87a1e5267 100644 --- a/fine-hibernate/src/main/java/com/fr/third/org/hibernate/tool/schema/internal/AbstractSchemaMigrator.java +++ b/fine-hibernate/src/main/java/com/fr/third/org/hibernate/tool/schema/internal/AbstractSchemaMigrator.java @@ -613,13 +613,16 @@ public abstract class AbstractSchemaMigrator implements SchemaMigrator { ExecutionOptions options, GenerationTarget... targets) { if ( !StringHelper.isEmpty( sqlString ) ) { + String formattedSql = null; for ( GenerationTarget target : targets ) { try { - target.accept( formatter.format( sqlString ) ); + formattedSql = formatter.format( sqlString ); + target.accept( formattedSql ); } catch (CommandAcceptanceException e) { if ( !quiet ) { options.getExceptionHandler().handleException( e ); + log.warnf( formattedSql ); } return false; }