Merge pull request '"UNION with CTE" Workaround' (#65) from fix-union into master
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Reviewed-on: #65
Reviewed-by: Lixfel <lixfel@steamwar.de>
Dieser Commit ist enthalten in:
Lixfel 2024-03-09 19:36:22 +01:00
Commit 98c804a15c

Datei anzeigen

@ -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;