Skip to content

Commit e63b95c

Browse files
committed
fix extremely long line in DerbyDialect
1 parent 58ed57d commit e63b95c

File tree

1 file changed

+4
-1
lines changed
  • hibernate-community-dialects/src/main/java/org/hibernate/community/dialect

1 file changed

+4
-1
lines changed

hibernate-community-dialects/src/main/java/org/hibernate/community/dialect/DerbyDialect.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,10 @@ public String castPattern(CastType from, CastType to) {
486486
case FLOAT:
487487
case DOUBLE:
488488
// Derby can't cast to char directly, but needs to be cast to decimal first...
489-
return "cast(trim(cast(cast(?1 as decimal(" + getDefaultDecimalPrecision() + "," + BigDecimalJavaType.INSTANCE.getDefaultSqlScale( this, null ) + ")) as char(254))) as ?2)";
489+
return "cast(trim(cast(cast(?1 as decimal("
490+
+ getDefaultDecimalPrecision() + ","
491+
+ BigDecimalJavaType.INSTANCE.getDefaultSqlScale( this, null )
492+
+ ")) as char(254))) as ?2)";
490493
case INTEGER:
491494
case LONG:
492495
case FIXED:

0 commit comments

Comments
 (0)