static String convertSQLWithLocalizedUnicodeCollator ( String sql ) { Matcher matcher = COLLATE_LOCALIZED_UNICODE_PATTERN . matcher ( sql ) ; return matcher . replaceAll ( " COLLATE NOCASE" ) ; }
Convert SQL with phrase COLLATE LOCALIZED or COLLATE UNICODE to COLLATE NOCASE .