rs.next(); return rs.getString(1).trim();
if (rs.next()==false) { return "-- no result --"; } String version = rs.getString(1); if (version==null) { return "-- null result --"; } return version.trim();
    public static String getVersionString(String function, Statement stat) {        try {            ResultSet rs = stat.executeQuery("SELECT " + function + "()");            rs.next();            return rs.getString(1).trim();        } catch (SQLException e) {            return "-- unavailable -- ";        }    }