Automatic override of converter class

Skip to first unread message

Esteban Maringolo

Jul 8, 2020, 1:43:15 AM7/8/20
to GLORP Mailing List

I was having some weird issues when using a LIKE command on a fixed
size CHAR field.

It turned out to be an automatic padding of the LIKE pattern with null
character, so I was searching for something like '%foo%' and it was
being padded to '%foo%-------' (- for null char).

The thing is that this cannot be overridden because the field forces
the conversion, ignoring what you define at the mapping level.
And I think it is wrong, because you can perform a regular LIKE
operation on fixed width character fields (at least in PostgreSQL).

Has anybody experienced something like this?


Esteban A. Maringolo

Esteban Maringolo

Jul 8, 2020, 1:55:30 AM7/8/20
to GLORP Mailing List
Nevermind... I was assigning the converter before mapping the fields,
so the mapping of the field was overriding my NullConverter definition
for that field.

Esteban A. Maringolo
Reply all
Reply to author
0 new messages