Browse Source

Merge pull request #6632 in CORE/base-third from bugfix/11.0 to release/11.0

* commit '5d3b68db5b3072bd1b77c587d2431228b67662a5':
  REPORT-78654 迁移报错优化
  REPORT-78654 迁移报错优化
release/11.0
superman 2 years ago
parent
commit
5ccd6eff39
  1. 5
      fine-hibernate/src/main/java/com/fr/third/org/hibernate/tool/schema/internal/AbstractSchemaMigrator.java

5
fine-hibernate/src/main/java/com/fr/third/org/hibernate/tool/schema/internal/AbstractSchemaMigrator.java

@ -613,12 +613,15 @@ 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 ) {
log.warnf( formattedSql );
options.getExceptionHandler().handleException( e );
}
return false;

Loading…
Cancel
Save