projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e0a6db
)
mysql/core_cities_merge.sql
author
Edward
<edward@roojs.com>
Thu, 26 Jun 2014 10:22:53 +0000
(18:22 +0800)
committer
Edward
<edward@roojs.com>
Thu, 26 Jun 2014 10:22:53 +0000
(18:22 +0800)
mysql/core_cities_merge.sql
patch
|
blob
|
history
diff --git
a/mysql/core_cities_merge.sql
b/mysql/core_cities_merge.sql
index
4c21f42
..
9075099
100644
(file)
--- a/
mysql/core_cities_merge.sql
+++ b/
mysql/core_cities_merge.sql
@@
-271,6
+271,9
@@
CREATE FUNCTION core_country_locations() RETURNS INT DETERMINISTIC
IF (v_continent_code != '') THEN
SELECT id INTO v_continent_id FROM core_geoip_continent WHERE code = v_continent_code;
+ IF v_continent_id = 0 THEN
+ INSERT INTO core_geoip_continent (code, name) VALUES (v_continent_code, v_continent_name);
+ END IF;
END IF;