Closed (fixed)
Project:
GeoNames
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Sep 2009 at 12:52 UTC
Updated:
21 Sep 2009 at 13:40 UTC
The content at http://download.geonames.org/export/dump/featureCodes.txt appears to have FIVE character codes, whereas the module schema has varchar(4). This results in truncation, and consequently duplicate entry errors. When updating the schema, please provide a hook_update also.
Comments
Comment #1
lyricnz commentedhttp://download.geonames.org/export/dump/readme.txt describes the feature code as being varchar(10), so that should be used.
Also, some of the names are 45 characters (current length is 40).
Comment #2
lyricnz commentedFixed in dev.
Comment #3
lyricnz commentedApplied to 6.x-1.x-dev