From a33dfd18ecf805fc1dbeaf272ab85d88cdf7dcf1 Mon Sep 17 00:00:00 2001 From: Rafa de la Torre Date: Thu, 19 Nov 2015 15:44:51 +0100 Subject: [PATCH] Use function return_type instead of hardcoded Geometry --- client/templates/30_plproxy_functions.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/templates/30_plproxy_functions.erb b/client/templates/30_plproxy_functions.erb index 22d6ffc..f6d01dd 100644 --- a/client/templates/30_plproxy_functions.erb +++ b/client/templates/30_plproxy_functions.erb @@ -1,5 +1,5 @@ CREATE OR REPLACE FUNCTION <%= GEOCODER_CLIENT_SCHEMA %>._<%= name %> (user_id name, tx_id bigint, <%= params_with_type %>) -RETURNS Geometry AS $$ +RETURNS <%= return_type %> AS $$ CONNECT <%= GEOCODER_CLIENT_SCHEMA %>._server_conn_str(); SELECT cdb_geocoder_server.<%= name %> (user_id, tx_id, <%= params %>); $$ LANGUAGE plproxy;