[jOOQ/jOOQ#12963] Revert fix in MySQL, for now

This commit is contained in:
Lukas Eder 2022-01-28 10:08:19 +01:00
parent 980d7ea535
commit f340e9c377

View File

@ -2059,9 +2059,7 @@ public class DefaultBinding<T, U> implements Binding<T, U> {
@Override
final void set0(BindingSetStatementContext<U> ctx, byte[] value) throws SQLException {
switch (ctx.family()) {
case H2:
case MYSQL:
blobs.set(new DefaultBindingSetStatementContext<>(ctx.executeContext(), ctx.statement(), ctx.index(), value));
break;
@ -2088,9 +2086,7 @@ public class DefaultBinding<T, U> implements Binding<T, U> {
@Override
final byte[] get0(BindingGetResultSetContext<U> ctx) throws SQLException {
switch (ctx.family()) {
case H2:
case MYSQL:
DefaultBindingGetResultSetContext<byte[]> x = new DefaultBindingGetResultSetContext<>(ctx.executeContext(), ctx.resultSet(), ctx.index());
blobs.get(x);
return x.value();
@ -2103,9 +2099,7 @@ public class DefaultBinding<T, U> implements Binding<T, U> {
@Override
final byte[] get0(BindingGetStatementContext<U> ctx) throws SQLException {
switch (ctx.family()) {
case H2:
case MYSQL:
DefaultBindingGetStatementContext<byte[]> x = new DefaultBindingGetStatementContext<>(ctx.executeContext(), ctx.statement(), ctx.index());
blobs.get(x);
return x.value();