Bit of a head scratcher. In my Java application I get the following error message:
Searching the Internet I find *) that instead of using AND you should use a comma.
Looking at my logging I see:
And as far as I see, the used SQL query is correct.
What can I do to solve my problem?
*) Link: https://www.bennadel.com/blog/1503-data-truncation-truncated-incorrect-double-value-when-updating-timestamp.htm]answers
com.mysql.jdbc.MysqlDataTruncation: Data truncation: Truncated incorrect DOUBLE value
Searching the Internet I find *) that instead of using AND you should use a comma.
Looking at my logging I see:
class nl.mycompany.tk.RecordsPanel - addNewRow, updating tkTimestamp timestamp ID: '0', perident: 'jdoe', project: 'Promotie jaar 1', activity: '01 Zoeken', timestamp: '2017-04-23 15:43:12.972 in timestamp record class nl.mycompany.tk.dao.TimestampImplementation - update, SQL query is 'UPDATE tktimestamp SET project=?, activity=?, timest=? WHERE perident = ?' class nl.mycompany.tk.dao.TimestampImplementation - update, tTs=timestamp ID: '0', perident: 'jdoe', project: 'Promotie jaar 1', activity: '01 Zoeken', timestamp: '2017-04-23 15:43:12.972 class nl.mycompany.tk.dao.DAOException - DAOException com.mysql.jdbc.MysqlDataTruncation: Data truncation: Truncated incorrect DOUBLE value: 'jdoe'
And as far as I see, the used SQL query is correct.
SQL query is 'UPDATE tktimestamp SET project=?, activity=?, timest=? WHERE perident = ?'
What can I do to solve my problem?
*) Link: https://www.bennadel.com/blog/1503-data-truncation-truncated-incorrect-double-value-when-updating-timestamp.htm]answers