Mysql Returning 'Duplicate Entry' When No Duplicate Exists -
weird issue:
error 1062: 1062: duplicate entry '21474836476' key 'twitterid' sql statement: insert `database`.`wp_table` (`id`, `twitterid`) values ('34', '33456305746')
even though typed in 33456305746, thinks typing in 21474836476. row exist tried deleting , saves row value of 21474836476. if remove unique requirement saves both rows 21474836476. know in world going on here?
21474836476
(close to) max value of integer
data type of field.
33456305746
bigger , db truncates value max integer
inserted @ time before.
change data type of field bigint
if need such high numbers.
Comments
Post a Comment