Skip to content

Commit

Permalink
fix a minor bug in RowIdJdbcType
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinking committed Jan 4, 2023
1 parent b233904 commit 43316e9
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -55,7 +55,6 @@ protected void doBind(CallableStatement st, X value, String name, WrapperOptions
}

@Override
@SuppressWarnings("unchecked")
public <X> ValueExtractor<X> getExtractor(JavaType<X> javaType) {
return new BasicExtractor<>( javaType, this ) {
@Override
Expand All @@ -70,7 +69,7 @@ protected X doExtract(CallableStatement statement, int index, WrapperOptions opt

@Override
protected X doExtract(CallableStatement statement, String name, WrapperOptions options) throws SQLException {
return getJavaType().wrap( statement.getObject( name ), options );
return getJavaType().wrap( statement.getRowId( name ), options );
}
};
}
Expand Down

0 comments on commit 43316e9

Please sign in to comment.