Dieser Commit ist enthalten in:
Ursprung
647012ac40
Commit
d5dbe05e29
@ -134,7 +134,11 @@ public class Statement implements AutoCloseable {
|
||||
|
||||
public <T> T select(ResultSetUser<T> user, Object... objects) {
|
||||
return withConnection(st -> {
|
||||
ResultSet rs = st.executeQuery();
|
||||
boolean res = st.execute();
|
||||
if(!res) {
|
||||
throw new SecurityException("No result set for select statement");
|
||||
}
|
||||
ResultSet rs = st.getResultSet();
|
||||
T result = user.use(rs);
|
||||
rs.close();
|
||||
return result;
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren