Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -116,16 +116,10 @@ public Map<String, Map<String, Object>> getProperties(DefaultSchema defaultSchem
public void exec(ResultSet object) throws SQLException
{
Results rs = new ResultsImpl(object, cols);
String id = ti.getColumn("Id").getStringValue(rs);

String id = rs.getString(FieldKey.fromString(ti.getColumn("Id").getAlias()));

Map<String, Object> map = ret.get(id);
if (map == null)
map = new TreeMap<>();

Map<String, Object> map = ret.computeIfAbsent(id, (x)->new TreeMap<>());
processRow(rs, cols, map);

ret.put(id, map);
}
});
if (debugEnabled)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,16 +85,10 @@ public Map<String, Map<String, Object>> getProperties(DefaultSchema defaultSchem
public void exec(ResultSet object) throws SQLException
{
Results rs = new ResultsImpl(object, cols);
String id = ti.getColumn("Id").getStringValue(rs);

String id = rs.getString(FieldKey.fromString(ti.getColumn("Id").getAlias()));

Map<String, Object> map = ret.get(id);
if (map == null)
map = new HashMap<>();

Map<String, Object> map = ret.computeIfAbsent(id, (x)->new HashMap<>());
processRow(rs, cols, map);

ret.put(id, map);
}
});
}
Expand Down