[jOOQ/jOOQ#2902] SQLite's binding of BigDecimal through PreparedStatement.setString() doesn't work for predicates
This commit is contained in:
parent
3aa14277af
commit
d18b14ef16
@ -944,6 +944,15 @@ public class DefaultBinding<T, U> implements Binding<T, U> {
|
||||
}
|
||||
}
|
||||
|
||||
// [#2902] The xerial driver binds BigDecimal as String, which may produce
|
||||
// wrong results
|
||||
if (dataType.isDecimal()) {
|
||||
switch (ctx.family()) {
|
||||
case SQLITE:
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user