MySQL Forums
Forum List  »  Connector/JDBC and Java

Re: Data truncation: Truncated incorrect DOUBLE value
Posted by: Macamba .
Date: April 23, 2017 08:48AM

I found it. The error message is very cryptic, and points you in the wrong direction. In my code I had:
Object[] values = { tTs.getProjectName(), tTs.getActivity(), tTs.getTimestampString(), tTs.equals(tTs.getPersonIdentifier()) };

And it should have been:
Object[] values = { tTs.getProjectName(), tTs.getActivity(), tTs.getTimestampString(), tTs.getPersonIdentifier() };

That was another face palm moment for me.

Options: ReplyQuote


Subject
Written By
Posted
Re: Data truncation: Truncated incorrect DOUBLE value
April 23, 2017 08:48AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.