Skip to content
Merged

Informix #10426

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,10 @@ public String castPattern(CastType from, CastType to) {
case FLOAT:
case DOUBLE:
// Derby can't cast to char directly, but needs to be cast to decimal first...
return "cast(trim(cast(cast(?1 as decimal(" + getDefaultDecimalPrecision() + "," + BigDecimalJavaType.INSTANCE.getDefaultSqlScale( this, null ) + ")) as char(254))) as ?2)";
return "cast(trim(cast(cast(?1 as decimal("
+ getDefaultDecimalPrecision() + ","
+ BigDecimalJavaType.INSTANCE.getDefaultSqlScale( this, null )
+ ")) as char(254))) as ?2)";
case INTEGER:
case LONG:
case FIXED:
Expand Down
Loading