update regex to match trigger

This commit is contained in:
andrewxhill
2014-08-04 19:25:34 -04:00
parent 12555333e9
commit 6a640b3365

View File

@@ -13,7 +13,8 @@ CREATE OR REPLACE FUNCTION test_geocode_admin0_polygons(name text[])
FROM ne_admin0_v3
WHERE adm0_a3 = (
SELECT adm0_a3 FROM admin0_synonyms
WHERE name_ = lower(regexp_replace(d.q, '[^a-zA-Z]', '', 'g'))
WHERE name_ =
lower(regexp_replace(d.q, '[^A-z\u00C0-\u00ff]+', '', 'g'))
ORDER BY rank ASC LIMIT 1
)
) geom