mysql/core_cities_merge.sql
authorEdward <edward@roojs.com>
Thu, 26 Jun 2014 10:27:39 +0000 (18:27 +0800)
committerEdward <edward@roojs.com>
Thu, 26 Jun 2014 10:27:39 +0000 (18:27 +0800)
mysql/core_cities_merge.sql

index b592532..76e595a 100644 (file)
@@ -279,7 +279,7 @@ CREATE FUNCTION core_country_locations()  RETURNS INT DETERMINISTIC
             END IF;
 
             IF (v_country_iso_code != '') THEN
-                RETURN v_country_iso_code;
+                RETURN v_geoname_id;
                 SELECT id INTO v_country_id FROM core_geoip_country WHERE code = v_country_iso_code;
 
                 IF v_continent_id = 0 THEN