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