Closed (fixed)
Project:
GeoNames
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Oct 2009 at 13:34 UTC
Updated:
12 Nov 2009 at 11:30 UTC
I was looking through the diff of the latest geonames 2.x dev version and I found a problem. In the geonames_update_6002 function db_query was replaced by update_sql, but update_sql does not support %-substitution parameters. From the API page of update_sql:
Parameters
$sql A string containing a complete SQL query. %-substitution parameters are not supported.
Comments
Comment #1
cronix commentedDoes this mean I cannot use the current dev? I was hoping that some wikipedia bugs were fixed in this version.
Comment #2
andreiashu commented@cronix: just go to geonames.install and in function
geonames_update_6002replaceupdate_sqltodb_queryComment #3
lyricnz commented6.x-2.x is basically abandoned, which is why it's not published as a tar. Use 6.x-1.x-dev.
However, 6.x-1.x-dev had the same issue. I've made the update above, and added a comment as to why we don't update the $ret used in hook_update_N.