Fixed to keep the provider order in the results

Also now is compatible with PG10
This commit is contained in:
Mario de Frutos
2018-02-14 14:23:19 +01:00
parent ff1f6125e8
commit 5df9e5b850
2 changed files with 13 additions and 11 deletions

View File

@@ -10,9 +10,9 @@ SELECT (admin0_synonym_lookup(Array['United States', 'ESP'])).*;
SELECT (geocode_admin0_polygons(Array['Spain', 'USA', ''])).*;
q | geom | success
-------+------+---------
| | f
Spain | | f
USA | | f
| | f
(3 rows)
-- Add a few synonyms
@@ -21,7 +21,7 @@ COPY admin0_synonyms (name, rank, created_at, updated_at, the_geom, the_geom_web
SELECT (admin0_synonym_lookup(Array['United States', 'ESP'])).*;
q | adm0_a3
---------------+---------
ESP | ESP
United States | USA
ESP | ESP
(2 rows)