diff --git a/utils/fct/gw_fct_setfeaturedelete.sql b/utils/fct/gw_fct_setfeaturedelete.sql index 422ea65fae..3d1884d55c 100644 --- a/utils/fct/gw_fct_setfeaturedelete.sql +++ b/utils/fct/gw_fct_setfeaturedelete.sql @@ -14,6 +14,7 @@ RETURNS json AS $BODY$ /* +-- MODE 1: individual SELECT SCHEMA_NAME.gw_fct_setfeaturedelete($${ "client":{"device":4, "infoType":1, "lang":"ES"}, "form":{},"feature":{"type":"NODE"}, @@ -24,11 +25,15 @@ SELECT SCHEMA_NAME.gw_fct_setfeaturedelete($${ "form":{},"feature":{"type":"CONNEC"}, "data":{"feature_id":"3244"}}$$); - SELECT SCHEMA_NAME.gw_fct_setfeaturedelete($${ "client":{"device":4, "infoType":1, "lang":"ES"}, "form":{},"feature":{"type":"ARC"},"data":{"feature_id":"2002"}}$$); +-- MODE 2: massive usign pure SQL +SELECT SCHEMA_NAME.gw_fct_setfeaturedelete(CONCAT(' +{"client":{"device":4, "infoType":1, "lang":"ES"}, +"form":{},"feature":{"type":"NODE"},"data":{"feature_id":"',node_id,'"}}')::json) FROM ... WHERE...; + -- fid: 152 */