[jOOQ/jOOQ#8751] Slightly improve performance of Integer rendering

When rendering Integer values (e.g. represented by Val objects) the
`DefaultIntegerBinding` can be optimized to use `RenderContext#sql(int)`
rather than `RenderContext#sql(String)`, as the latter requires to first
call `Integer#toString()`.
This commit is contained in:
Knut Wannheden 2019-06-07 07:49:44 +02:00
parent c43f685199
commit 351b45b1ae

View File

@ -2380,7 +2380,7 @@ public class DefaultBinding<T, U> implements Binding<T, U> {
@Override
final void sqlInline0(BindingSQLContext<U> ctx, Integer value) {
ctx.render().sql(value.toString());
ctx.render().sql(value);
}
@Override