code: protected String escapeQuotes(String s) throws SQLException {
      StringBuilder sb = new StringBuilder();
      if (!connection.getStandardConformingStrings()) {
        sb.append("E");
      }
      sb.append("'");
      sb.append(connection.escapeString(s));
      sb.append("'");
      return sb.toString();
    }
docs: Turn the provided value into a valid string literal for direct inclusion into a query. This
  includes the single quotes needed around it.
  
  @param s input value
  
  @return string literal for direct inclusion into a query
  @throws SQLException if something wrong happens