Skip to content

Commit

Permalink
workaround issue on postgres
Browse files Browse the repository at this point in the history
this is probably a pre-existing hole in the logic,
not related really related to my work
  • Loading branch information
gavinking committed Apr 29, 2023
1 parent fb9c007 commit d348ae2
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@ public <T> JdbcLiteralFormatter<T> getJdbcLiteralFormatter(JavaType<T> javaTypeD
}
else {
//noinspection unchecked
elementJavaType = ( (BasicPluralJavaType<T>) javaTypeDescriptor ).getElementJavaType();
elementJavaType = javaTypeDescriptor instanceof BasicPluralJavaType
? ( (BasicPluralJavaType<T>) javaTypeDescriptor ).getElementJavaType()
: null; //TODO: what should really happen here?
}
final JdbcLiteralFormatter<T> elementFormatter = elementJdbcType.getJdbcLiteralFormatter( elementJavaType );
return new JdbcLiteralFormatterArray<>( javaTypeDescriptor, elementFormatter );
Expand Down

0 comments on commit d348ae2

Please sign in to comment.