Long shot question for any mysql wizards out there. We have a varchar(12) column in a table that has a value of ELIZ19580804. We are trying to insert that value into another table with a column defined as varchar(25). MySQL throws an error "1292 truncated incorrect double value for 'ELIZ19580804'". If I change and update the value to say ZZZZ19580804, it throws the same error with the original value of ELIZ19580804. The select query that returns just this row is:
SELECT c_spid, 191, CAST(c_uid AS CHAR(12)), 'CTB Plan 191', NOW(), c_coid, 1, c_emid, NOW()
FROM _colonial
WHERE c_spid IS NOT NULL
AND c_uid IS NOT NULL
AND NOT EXISTS (SELECT 1 FROM sponsorasset WHERE sa_bpid=191 AND sa_spid=c_spid AND sa_custom1=c_coid);
The insert portion is:
INSERT INTO sponsorasset(sa_spid, sa_bpid, sa_account, sa_desc, sa_added, sa_custom1, sa_ctb_upd_pending, sa_ctb_emid, sa_dla)
That fails with that error message. Now for extra strangness, if I explicitly insert just that one row adding AND c_id = 28 to the select it works fine and inserts the value that I manually set : ZZZZ19580804