Skip to content

Commit

Permalink
fix for structured types strings
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-pmotacki committed Dec 10, 2024
1 parent ef97947 commit 50c273f
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -278,15 +278,13 @@ public Object getObject(int columnIndex) throws SQLException {
}
if (object instanceof StructObjectWrapper) {
StructObjectWrapper structObjectWrapper = (StructObjectWrapper) object;
if (structObjectWrapper.getJsonString() != null) {
if (resultSetMetaData.isStructuredTypeColumn(columnIndex)
&& structObjectWrapper.getJsonString() != null) {
return structObjectWrapper.getJsonString();
}
if (structObjectWrapper.getObject() != null) {
return structObjectWrapper.getObject();
}
if (structObjectWrapper.getJsonString() != null) {
return structObjectWrapper.getJsonString();
}
}
return object;
}
Expand Down

0 comments on commit 50c273f

Please sign in to comment.