docs: public static String replaceProcessing(String sql, boolean replaceProcessingEnabled,
        boolean standardConformingStrings) throws SQLException {
      if (replaceProcessingEnabled) {
        // Since escape codes can only appear in SQL CODE, we keep track
        // of if we enter a string or not.
        int len = sql.length();
        char[] chars = sql.toCharArray();
        StringBuilder newsql = new StringBuilder(len);
        int i = 0;
        while (i < len) {
          i = parseSql(chars, i, newsql, false, standardConformingStrings);
          // We need to loop here in case we encounter invalid
          // SQL, consider: SELECT a FROM t WHERE (1 > 0)) ORDER BY a
          // We can't ending replacing after the extra closing paren
          // because that changes a syntax error to a valid query
          // that isn't what the user specified.
          if (i < len) {
            newsql.append(chars[i]);
            i++;
          }
        }
        return newsql.toString();
      } else {
        return sql;
      }
    }