Skip to content

Commit

Permalink
Added a clauseTemplate for Numeric fieldType to skip the escaping of …
Browse files Browse the repository at this point in the history
…the characters.
  • Loading branch information
foogaro committed Oct 7, 2024
1 parent 2e797b6 commit e9fb95e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,8 @@ 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) {
prepared = prepared.replace(PARAM_PREFIX + i++, param.toString());
} else {
prepared = prepared.replace(PARAM_PREFIX + i++,
QueryUtils.escape(ObjectUtils.asString(param, converter)));
Expand Down

0 comments on commit e9fb95e

Please sign in to comment.