From 940877ca202130b779da1d2c86a096344354aeae Mon Sep 17 00:00:00 2001 From: lukaseder Date: Wed, 6 Jun 2018 14:12:46 +0200 Subject: [PATCH] [#7548] Underflow when binding small Double values to Oracle JDBC --- .../java/org/jooq/impl/DefaultBinding.java | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/jOOQ/src/main/java/org/jooq/impl/DefaultBinding.java b/jOOQ/src/main/java/org/jooq/impl/DefaultBinding.java index ff7d6d1c02..69125d2a50 100644 --- a/jOOQ/src/main/java/org/jooq/impl/DefaultBinding.java +++ b/jOOQ/src/main/java/org/jooq/impl/DefaultBinding.java @@ -2089,6 +2089,11 @@ final void sqlInline0(BindingSQLContext ctx, Double value) { @Override final void set0(BindingSetStatementContext ctx, Double value) throws SQLException { + + + + + ctx.statement().setDouble(ctx.index(), value); } @@ -2114,6 +2119,11 @@ final Double get0(BindingGetSQLInputContext ctx) throws SQLException { @Override final int sqltype(Configuration configuration) { + + + + + return Types.DOUBLE; } } @@ -2250,6 +2260,11 @@ final void sqlInline0(BindingSQLContext ctx, Float value) { @Override final void set0(BindingSetStatementContext ctx, Float value) throws SQLException { + + + + + ctx.statement().setFloat(ctx.index(), value); } @@ -2275,6 +2290,11 @@ final Float get0(BindingGetSQLInputContext ctx) throws SQLException { @Override final int sqltype(Configuration configuration) { + + + + + return Types.FLOAT; } }