public static String makeUnifiedLineFeeds(String query){
  if (query.indexOf('\r') == -1) {
    return query;
  }
  StringBuilder result=new StringBuilder(query.length());
  for (int i=0; i < query.length(); i++) {
    char c=query.charAt(i);
    if (c == '\r') {
      continue;
    }
    result.append(c);
  }
  return result.toString();
}

public static String makeUnifiedLineFeeds ( String query ) { if ( query . indexOf ( '\r' ) == - 1 ) { return query ; } StringBuilder result = new StringBuilder ( query . length ( ) ) ; for ( int i = 0 ; i < query . length ( ) ; i ++ ) { char c = query . charAt ( i ) ; if ( c == '\r' ) { continue ; } result . append ( c ) ; } return result . toString ( ) ; }
removes \ \ r characters from query . actually this is done specially for oracle due to some bug in it ' s driver
