Skip to content

Commit

Permalink
[#7548] Underflow when binding small Double values to Oracle JDBC
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaseder committed Jun 6, 2018
1 parent ba9ba94 commit 940877c
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions jOOQ/src/main/java/org/jooq/impl/DefaultBinding.java
Expand Up @@ -2089,6 +2089,11 @@ final void sqlInline0(BindingSQLContext<U> ctx, Double value) {

@Override
final void set0(BindingSetStatementContext<U> ctx, Double value) throws SQLException {





ctx.statement().setDouble(ctx.index(), value);
}

Expand All @@ -2114,6 +2119,11 @@ final Double get0(BindingGetSQLInputContext<U> ctx) throws SQLException {

@Override
final int sqltype(Configuration configuration) {





return Types.DOUBLE;
}
}
Expand Down Expand Up @@ -2250,6 +2260,11 @@ final void sqlInline0(BindingSQLContext<U> ctx, Float value) {

@Override
final void set0(BindingSetStatementContext<U> ctx, Float value) throws SQLException {





ctx.statement().setFloat(ctx.index(), value);
}

Expand All @@ -2275,6 +2290,11 @@ final Float get0(BindingGetSQLInputContext<U> ctx) throws SQLException {

@Override
final int sqltype(Configuration configuration) {





return Types.FLOAT;
}
}
Expand Down

0 comments on commit 940877c

Please sign in to comment.