From 4283d3a25b72cc51dc03fcc78a1a75b33ac60f96 Mon Sep 17 00:00:00 2001 From: Carla Date: Thu, 12 Nov 2015 11:37:32 +0100 Subject: [PATCH] Update 50_namedplaces_test.sql --- server/extension/sql/50_namedplaces_test.sql | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/server/extension/sql/50_namedplaces_test.sql b/server/extension/sql/50_namedplaces_test.sql index c040e13..cda38b0 100644 --- a/server/extension/sql/50_namedplaces_test.sql +++ b/server/extension/sql/50_namedplaces_test.sql @@ -1,11 +1,11 @@ -- Check that the public function is callable, even with no data -- It should return NULL SELECT cdb_geocoder_server.geocode_namedplace_point(session_user, txid_current(), 'Elx'); -SELECT cdb_geocoder_server.geocode_namedplace(session_user, txid_current(), 'Elche'); -SELECT cdb_geocoder_server.geocode_namedplace(session_user, txid_current(), 'Elx', 'Spain'); -SELECT cdb_geocoder_server.geocode_namedplace(session_user, txid_current(), 'Elche', 'Spain'); -SELECT cdb_geocoder_server.geocode_namedplace(session_user, txid_current(), 'Elx', 'Valencia', 'Spain'); -SELECT cdb_geocoder_server.geocode_namedplace(session_user, txid_current(), 'Elche', 'valencia', 'Spain'); +SELECT cdb_geocoder_server.geocode_namedplace_point(session_user, txid_current(), 'Elche'); +SELECT cdb_geocoder_server.geocode_namedplace_point(session_user, txid_current(), 'Elx', 'Spain'); +SELECT cdb_geocoder_server.geocode_namedplace_point(session_user, txid_current(), 'Elche', 'Spain'); +SELECT cdb_geocoder_server.geocode_namedplace_point(session_user, txid_current(), 'Elx', 'Valencia', 'Spain'); +SELECT cdb_geocoder_server.geocode_namedplace_point(session_user, txid_current(), 'Elche', 'valencia', 'Spain'); -- Insert dummy data into points table INSERT INTO global_cities_points_limited (geoname_id, name, iso2, admin1, admin2, population, lowername, the_geom) VALUES (3128760, 'Elche', 'ES', 'Valencia', 'AL', 34534, 'elche', ST_GeomFromText(