File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed
hibernate-core/src/main/java/org/hibernate/tool/schema/internal Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -519,9 +519,10 @@ private static void applySqlString(
519
519
ExecutionOptions options ,
520
520
GenerationTarget ... targets ) {
521
521
if ( !StringHelper .isEmpty ( sqlString ) ) {
522
+ String sqlStringFormatted = formatter .format ( sqlString );
522
523
for ( GenerationTarget target : targets ) {
523
524
try {
524
- target .accept ( formatter . format ( sqlString ) );
525
+ target .accept ( sqlStringFormatted );
525
526
}
526
527
catch (CommandAcceptanceException e ) {
527
528
if ( !quiet ) {
Original file line number Diff line number Diff line change @@ -435,8 +435,9 @@ private static void applySqlString(
435
435
}
436
436
437
437
try {
438
+ String sqlStringFormatted = formatter .format ( sqlString );
438
439
for ( GenerationTarget target : targets ) {
439
- target .accept ( formatter . format ( sqlString ) );
440
+ target .accept ( sqlStringFormatted );
440
441
}
441
442
}
442
443
catch (CommandAcceptanceException e ) {
Original file line number Diff line number Diff line change @@ -369,9 +369,10 @@ private static void applySqlString(
369
369
return ;
370
370
}
371
371
372
+ String sqlStringFormatted = formatter .format ( sqlString );
372
373
for ( GenerationTarget target : targets ) {
373
374
try {
374
- target .accept ( formatter . format ( sqlString ) );
375
+ target .accept ( sqlStringFormatted );
375
376
}
376
377
catch (CommandAcceptanceException e ) {
377
378
options .getExceptionHandler ().handleException ( e );
You can’t perform that action at this time.
0 commit comments