Automatic override of converter class

4 views
Skip to first unread message

Esteban Maringolo

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

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?

Regards!

Esteban A. Maringolo

Esteban Maringolo

unread,
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
Forward
0 new messages