Skip to content

Commit

Permalink
Fix VDI entity ID retrieval (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmgaldi authored Apr 25, 2024
1 parent e927376 commit 08bf1aa
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public VDIEntityIdRetriever(DataSource eda, String schema) {
}

public Optional<String> queryEntityId(String vdiStableId) {
final String sql = String.format("SELECT internal_abbrev FROM %s.userstudydatasetid u" +
final String sql = String.format("SELECT stable_id FROM %s.userstudydatasetid u" +
" JOIN %s.entitytypegraph etg" +
" ON u.study_stable_id = etg.study_stable_id" +
" WHERE dataset_stable_id = ?", schema, schema);
Expand All @@ -24,7 +24,7 @@ public Optional<String> queryEntityId(String vdiStableId) {
if (!hasNext) {
return Optional.empty();
}
return Optional.ofNullable(rs.getString("internal_abbrev"));
return Optional.ofNullable(rs.getString("stable_id"));
});
}
}

0 comments on commit 08bf1aa

Please sign in to comment.