Skip to content

Commit 9f19f7d

Browse files
authored
Update hibernate-core/src/main/java/org/hibernate/dialect/type/AbstractPostgreSQLStructJdbcType.java
1 parent a9a227a commit 9f19f7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hibernate-core/src/main/java/org/hibernate/dialect/type/AbstractPostgreSQLStructJdbcType.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1232,7 +1232,7 @@ private void serializeConvertedBasicTo(
12321232
case SqlTypes.ENUM:
12331233
case SqlTypes.NAMED_ENUM:
12341234
appender.quoteStart();
1235-
appender.append( subValue.toString() );
1235+
appender.append( jdbcJavaType.unwrap( subValue, String.class, options ) );
12361236
appender.quoteEnd();
12371237
break;
12381238
case SqlTypes.DATE:

0 commit comments

Comments
 (0)