Thursday, June 21, 2018

[google-cloud-sql-discuss] Re: trying storage with JDBC a string digits into Binary cell with no luck .. any suggestions?

Hello Guy, 

How does your statement look like in its entirety? What do you want to accomplish with the prepared statement? 

Java documentation describes method setByte(int parameterIndex, byte x): "Sets the designated parameter to the given Java byte value." that seems to be appropriate in your case. YOu may notice that the second parameter in the set* method is not a string but a byte, so you need to define it accordingly. You may refer to the "Interface PreparedStatement" documentation page

--
You received this message because you are subscribed to the Google Groups "Google Cloud SQL discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-sql-discuss+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-sql-discuss/c8084ff3-aa05-44c1-842c-c691f66c7165%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment