java - Grails PostgreSQL and umlauts -
my postgresql query returns no results when search string starts german umlaut Ö. using ilike results.
the problem if first letter umlaut.... postgresql query alone works fine. there seems problem combination of grails. making further research found out there problem ilike when change works fine.
def searchresult = termin.createcriteria().listdistinct{ or { ilike('vorname', '%' + searchstring.trim() + '%') ilike('nachname', '%' + searchstring.trim() + '%') } order('nachname', 'asc') maxresults(27) }
Comments
Post a Comment