Skip to content

Commit

Permalink
fix: cast to CHAR instead of TEXT when filtering uuid fields (#45)
Browse files Browse the repository at this point in the history
* fix: cast to CHAR instead of TEXT when filtering uuid fields

* chore: set explicit length when casting to CHAR
  • Loading branch information
dziraf authored Jun 24, 2022
1 parent 79adcca commit a2bcc4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/filter/default-filter.parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const DefaultParser: FilterParser = {
return {
filterKey: fieldKey,
filterValue: Raw(
(alias) => `CAST(${alias} AS text) = :value`,
(alias) => `CAST(${alias} AS CHAR(36)) = :value`,
{ value: filter.value },
),
}
Expand Down

0 comments on commit a2bcc4e

Please sign in to comment.