How do I know if a pair of FLOAT(11,7) primary keys already exists?
I have these values lat: 50.0077953 and lng: -119.3953705
I do:
SELECT * FROM wp_geo_mashup_locations WHERE lat = '50.0077953' AND lng = '-119.395367'
Since this success, I do,
INSERT INTO wp_geo_mashup_locations (lat,lng) VALUES ('50.0077953', '-119.395367')
I get:
Duplicate entry '50.0077934--119.3953705' for key 2