Skip to content

Commit

Permalink
fix: include LocalDate, LocalDateTime in params that need conversion+…
Browse files Browse the repository at this point in the history
…escaping
  • Loading branch information
bsbodden committed Oct 9, 2024
1 parent 6fd7c59 commit 557ab2b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ public String prepareQuery(String field, Object... params) {
} else {
if (clauseTemplate.getIndexType() == FieldType.TEXT) {
prepared = prepared.replace(PARAM_PREFIX + i++, param.toString());
} else if (clauseTemplate.getIndexType() == FieldType.NUMERIC) {
} else if (clauseTemplate.getIndexType() == FieldType.NUMERIC && !paramClass.equalsIgnoreCase("java.time.LocalDateTime") && !paramClass.equalsIgnoreCase("java.time.LocalDate")) {
prepared = prepared.replace(PARAM_PREFIX + i++, param.toString());
} else {
prepared = prepared.replace(PARAM_PREFIX + i++,
Expand Down

0 comments on commit 557ab2b

Please sign in to comment.