-
Notifications
You must be signed in to change notification settings - Fork 167
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
SNOW-1778959: Binary value '14843418AF05FDC3C69C' is too long and would be truncated #1952
Comments
@amergey thanks for raising this issue. That error is returned from the backend; it's not a JDBC driver issue unless there's a problem with the data that it's sending and it's not the same data you were expecting to see. Does that binary data If the error is showing you a value that you're not expecting, then can you provide an example code snippet showing how you generated this data and how you prepared your statement in your Java code? Otherwise, if the data matches what you sent, then it's not a JDBC issue. You will need to open a support case to have that looked at. |
@sfc-gh-wfateem thanks for you answer. |
Thanks for the response @amergey. |
Please answer these questions before submitting your issue.
In order to accurately debug the issue this information is required. Thanks!
What version of JDBC driver are you using?
3.19.0
What operating system and processor architecture are you using?
Ubuntu 22.04.5
What version of Java are you using?
JDK 17
What did you do?
Execute an insert in a table with a JDBC prepared statement binding a byte[] value into a binary column
It fails with
Binary value '418E3F4240F7038405B8' is too long and would be truncated
The odd thing is, if I debug my java program and put a breakpoint to execute step by step, then it succeed
Normal run, fails all the time. Debug with breakpoint succeed all the time, so probably some race conditions
it should succeed, my table is created to contains max size binary and I set a 10 bytes byte array
The text was updated successfully, but these errors were encountered: