The classes UUIDJdbcType and VarcharUUIDJdbcType lack implementations for getJdbcLiteralFormatter, and the default is to just append the toString representation of the java value. This leads to wrong literals being rendered into SQL. The UUIDJdbcType should delegate to a Dialect method e.g. appendUUIDLiteral(SqlAppender, UUID)}}and the {{VarcharUUIDJdbcType should just use the JdbcLiteralFormatterCharacterData implementation. Maybe we should do some sort of generic test that traverses all java types and tries to create literals for them and do an is null check, to verify the produced SQL is valid. |