src/main/java/de/uapcore/lightpit/dao/postgres/PGIssueDao.java

changeset 72
0646c14e36fb
parent 70
821c4950b619
child 75
33b6843fdf8a
equal deleted inserted replaced
71:dca186d3911f 72:0646c14e36fb
73 "subject = ?, description = ?, version_plan = ?, version_done = ?, eta = ? where id = ?" 73 "subject = ?, description = ?, version_plan = ?, version_done = ?, eta = ? where id = ?"
74 ); 74 );
75 } 75 }
76 76
77 private Version obtainVersion(ResultSet result, Project project, String prefix) throws SQLException { 77 private Version obtainVersion(ResultSet result, Project project, String prefix) throws SQLException {
78 final int vplan = result.getInt(prefix+"id"); 78 final int vplan = result.getInt(prefix + "id");
79 if (vplan > 0) { 79 if (vplan > 0) {
80 final var ver = new Version(vplan, project); 80 final var ver = new Version(vplan, project);
81 ver.setName(result.getString(prefix+"name")); 81 ver.setName(result.getString(prefix + "name"));
82 return ver; 82 return ver;
83 } else { 83 } else {
84 return null; 84 return null;
85 } 85 }
86 } 86 }

mercurial