Andrew Dunstan <andrew@dunslane.net> writes:
> I'll have another look. What happens in that case though if you have
> escape+x where x is a multibyte char?
TCHAR()'s just a no-op in multibyte encodings --- we handle ILIKE
using a preliminary downcasing pass in that case.
regards, tom lane