cartodb as dependency and use its config table #37

in the client.
This commit is contained in:
Rafa de la Torre
2015-11-17 12:01:18 +01:00
parent 7cba8fd679
commit b977277052
7 changed files with 14 additions and 52 deletions
+2 -2
View File
@@ -9,8 +9,8 @@ RETURNS text AS $$
DECLARE
db_connection_str text;
BEGIN
SELECT cdb_geocoder_client._config_get('db_server_config')->'connection_str' INTO db_connection_str;
SELECT cartodb.cdb_conf_getconf('geocoder_server_config')->'connection_str' INTO db_connection_str;
SELECT trim(both '"' FROM db_connection_str) INTO db_connection_str;
RETURN db_connection_str;
END;
$$ LANGUAGE 'plpgsql';
$$ LANGUAGE 'plpgsql';