Q3 - org_id = 0 will cause infinite recursion

55 views
Skip to first unread message

Wayne Jiang

unread,
May 17, 2018, 12:52:12 AM5/17/18
to COMP9311 Project Q&A
Hi all,

I found that in the table 'orgunit_groups', when owner = 0, it has also member = 0.

Therefore, when we are expected to use recursive function to find all members, this results in infinite recursion.

So, my question is, will this case 'org_id = 0'  be used for test?

Semisi Taufa

unread,
May 17, 2018, 1:35:01 AM5/17/18
to COMP9311 Project Q&A
You can use an if statement in the recursive function to pass values that was seen so that you don't repeat the same value
Reply all
Reply to author
Forward
0 new messages