Project

General

Profile

« Previous | Next » 

Revision 13823

schemas/util.sql: lat_long_in_new_world(): use function rather than operator+search_path to allow inlining, which enables util.new_world() to only be evaluated once

View differences:

util.sql
2248 2248

  
2249 2249
CREATE FUNCTION lat_long_in_new_world(latitude_deg double precision, longitude_deg double precision) RETURNS boolean
2250 2250
    LANGUAGE sql IMMUTABLE
2251
    SET search_path TO util, postgis
2252 2251
    AS $_$
2253
SELECT util.point($1, $2) @ util.new_world()
2252
/* use function rather than operator+search_path to allow inlining, which
2253
enables util.new_world() to only be evaluated once */
2254
SELECT util.contained_within(util.point($1, $2), util.new_world())
2254 2255
$_$;
2255 2256

  
2256 2257

  

Also available in: Unified diff