@@ -8,16 +8,18 @@ INSERT INTO loc.geometries AS l (
88 ST_GEOMFROMTEXT(sqlc .arg (geom)::TEXT , 4326 ),
99 $1 ,
1010 COALESCE(
11- ST_GEOMFROMTEXT(sqlc .narg (associated_point)::TEXT , 4326 ),
12- ST_CENTROID(ST_GEOMFROMTEXT(sqlc .arg (geom)::TEXT , 4326 ))
11+ ST_GEOMFROMTEXT(sqlc .narg (associated_point)::TEXT , 4326 ),
12+ ST_CENTROID(ST_GEOMFROMTEXT(sqlc .arg (geom)::TEXT , 4326 ))
1313 )
14- ) RETURNING l .geometry_uuid , l .geometry_name , ST_X(l .associated_point )::REAL AS longitude, ST_Y(l .associated_point )::REAL AS latitude;
14+ ) RETURNING
15+ l .geometry_uuid , l .geometry_name , ST_X(l .associated_point )::REAL AS longitude, ST_Y(l .associated_point )::REAL AS latitude;
1516
1617-- name: RenameGeometry :one
1718UPDATE loc .geometries AS l
1819SET geometry_name = LOWER (sqlc .arg (new_geometry_name)::TEXT )
1920WHERE l .geometry_uuid = $1
20- RETURNING l .geometry_uuid , l .geometry_name , ST_X(l .associated_point )::REAL AS longitude, ST_Y(l .associated_point )::REAL AS latitude;
21+ RETURNING
22+ l .geometry_uuid , l .geometry_name , ST_X(l .associated_point )::REAL AS longitude, ST_Y(l .associated_point )::REAL AS latitude;
2123
2224-- name: GetGeometryGeoJSON :one
2325/* GetLocationGeoJSON returns a GeoJSON FeatureCollection for the given geometries.
0 commit comments