docs: public static final String sqlEscape(final String sql) {
          if (sql == null) {
              return "";
          }
  
          int primePos = sql.indexOf("'");
  
          if (primePos == -1) {
              return sql;
          }
  
          final StringBuffer sb = new StringBuffer(sql.length() + 4);
          int startPos = 0;
  
          do {
              sb.append(sql.substring(startPos, primePos + 1));
              sb.append("'");
              startPos = primePos + 1;
              primePos = sql.indexOf("'", startPos);
          } while (primePos != -1);
  
          sb.append(sql.substring(startPos));
          return sb.toString();
      }