Quick LLBLGen 3.0 question around stored procedures (actually functions in PostgreSQL)
I've a table storing hierarchical data. I'm using adapter.
I've created a function which takes the ID of an entity and returns all "children" recursively (there may be a way to create a common table expression for PostgreSQL in LLBL already but I can't find it so I had to make a function).
I'm wanting to use the function in a where clause, basically:
...WHERE area_id IN (SELECT id FROM function_recursive_areas(1))
either this or a join would work too I guess
...JOIN function_recursive_areas(1) AS b ON a.area_id = b.id