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 } |