I have created a two column key in my mysql db (app_id, dated) and when i run the following query i get a problem
INSERT INTO `facebook_application_shares` (`user_id`, `app_id`, `dated`, `stats`) VALUES ('80', '269456199802533', '2012-04-24', '0')
I get the following error- even though the app_id is 269456199802533 and not 2147483647
Duplicate entry '2147483647-2012-04-24' for key 1
and then when i check the actual db table the value is actually “2147483647”
I am very much confused by this

2147483647, or0x7FFFFFFF, is the greatest numberMySQLis able to store in anINT SIGNEDcolumn (which youapp_idseems to be). Greater values just get truncated to it.Make your
app_idaBIGINT UNSIGNED.Note that
INT(100)is still a4-bitinteger, with an optional hint to an application not to show more than100digits from it:It’s not that it is really able to store a
googol - 1.