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

Popular posts from this blog

php - mySql Join with 4 tables -

css - Text drops down with smaller window -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -