Merge pull request #130 from CartoDB/preemptive-setsrid

preemptively set_srid for obs_getavailableboundaries
This commit is contained in:
Rafa de la Torre
2016-07-01 18:49:57 +02:00
committed by GitHub

View File

@@ -114,7 +114,7 @@ BEGIN
AND
observatory.OBS_column.type = 'Geometry'
AND
ST_Intersects($1, observatory.obs_table.the_geom)
ST_Intersects($1, st_setsrid(observatory.obs_table.the_geom, 4326))
$string$ || timespan_query
USING geom;
RETURN;