Merge pull request '"UNION with CTE" Workaround' (#65) from fix-union into master
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful
Reviewed-on: #65 Reviewed-by: Lixfel <lixfel@steamwar.de>
Dieser Commit ist enthalten in:
Commit
98c804a15c
@ -134,7 +134,11 @@ public class Statement implements AutoCloseable {
|
|||||||
|
|
||||||
public <T> T select(ResultSetUser<T> user, Object... objects) {
|
public <T> T select(ResultSetUser<T> user, Object... objects) {
|
||||||
return withConnection(st -> {
|
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);
|
T result = user.use(rs);
|
||||||
rs.close();
|
rs.close();
|
||||||
return result;
|
return result;
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren