[jOOQ/jOOQ#2902] SQLite's binding of BigDecimal through PreparedStatement.setString() doesn't work for predicates

This commit is contained in:
Lukas Eder 2024-09-19 14:53:17 +02:00
parent 3aa14277af
commit d18b14ef16

View File

@ -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;
}
}