docs: public static String sqlsubstring(List<?> parsedArgs) throws SQLException {
      if (parsedArgs.size() == 2) {
        return "substr(" + parsedArgs.get(0) + "," + parsedArgs.get(1) + ")";
      } else if (parsedArgs.size() == 3) {
        return "substr(" + parsedArgs.get(0) + "," + parsedArgs.get(1) + "," + parsedArgs.get(2)
            + ")";
      } else {
        throw new PSQLException(GT.tr("{0} function takes two or three arguments.", "substring"),
            PSQLState.SYNTAX_ERROR);
      }
    }