SQLFunction map for example. Places where using toLowerCase/toUppperCase might hit "the Turkish Locale problem". A better solution here is a Map impl that uses case-insensitive matching on String keys.