Problem: When a row is INSERTed, I must use a trigger to (conditionally) insert another row in the same table. I must put "NEW.rowID" in a different field of the "another" row (rowID being the primary key).
Using the same table as the one that caused the trigger is not possible within a trigger, and this is the reason for getting error #1442. This is understood.
This accepted answer suggests a workaround, but it seems this would not be a trigger anymore, correct? Instead, I would call (with program code) the Stored Procedure with all the field values and it would perform the INSERT from that. And if I put the SP call inside a trigger to let us insert by using an INSERT statement, I get error #1422 again. Right?
If I understood the above correctly, is there an alternative solution to keep it a trigger? (Boss would like a trigger to save on program code changes.)
What I've tried: Replacing the trigger code with an INSERT with hard-coded values, looked for answers, read documentation on transactions.