I need to run a procedure manually for a large set of records that meet a certain criteria. It works fine if I manually include an ID but for some reason it does not work if I just tell it to get a list of ids from a table. No errors; but the missing data doesn't get added to a table from the procedure.
As far as I understand it, this should work fine but it doesn't:
select fa_sptl_cross(id, geom) from focus_area where generation_id = 3;
But this works fine
select fa_sptl_cross(id, geom) from focus_area where id = 312231;
Even this should work, should it not?
select fa_sptl_cross(id, geom) from focus_area
Ideas?
AFAIK, it cannot be the procedure that is the issue because trying to do this fails with any procedure I try