Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BLOB or BINARY types and Buffer on DB2 #722

Open
gavinking opened this issue Aug 3, 2020 · 3 comments
Open

BLOB or BINARY types and Buffer on DB2 #722

gavinking opened this issue Aug 3, 2020 · 3 comments
Assignees

Comments

@gavinking
Copy link

gavinking commented Aug 3, 2020

As reported here, a parameter of type Buffer cannot be used as a parameter of type BLOB or BINARY on the DB2 client. This does work on both Postgres and MySQL.

The error is:

Parameter at position[1] with class = [io.vertx.core.buffer.impl.BufferImpl] and value = [...] can not be coerced to the expected class = [io.netty.buffer.ByteBuf] for encoding.

(More info in the linked HR issue.)

@gavinking gavinking added the bug Something isn't working label Aug 3, 2020
@gavinking gavinking changed the title BLOB type Buffer on DB2 BLOB or BINARY types and Buffer on DB2 Aug 3, 2020
@gavinking
Copy link
Author

Oh, now I also see that there is some commented code in DRDAQueryRequest.computeProtocolTypesAndLengths() for BLOB and CLOB types, that makes me suspect that there is simply no support for BLOB and CLOB currently?

Right, now I see in the docs that BLOB and CLOB aren't supported yet.

But this issue with Buffer is still a separate thing, since it also affects BINARY, which is supposed to be supported.

@aguibert aguibert self-assigned this Aug 3, 2020
@vietj vietj added bug module:db2 and removed bug Something isn't working labels Aug 17, 2020
@aguibert
Copy link
Member

right, BLOB and CLOB are not supported and will take me some time to get working. TBH I'm waiting for a bit more usage of the DB2 driver to see if a user asks for BLOB/CLOB. That effort is already tracked under #496

Lets re-purpose this issue for the Buffer/BINARY bug you ran into. I'll see if I can look into that in time for Vertx 3.9.3

@gavinking
Copy link
Author

Lets re-purpose this issue for the Buffer/BINARY bug you ran into. I'll see if I can look into that in time for Vertx 3.9.3

Great, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants