Hi, I need to do some auditing on updating a row.
So I have a function that receives a parameter of type some_table%ROWTYPE, containing the new values to be saved for that row.
I also need to save some info in a history table regarding what column values where changed. I was thinking of getting the column names for some_table from all_tab_columns, and then iterating over those to compare old and new values and see if it was changed. The problem is once I have the column name, I don't know how to access the value in my ROWTYPE variable. Something like var.getProperty(columnName).
I wanted to do it this way to avoid having a bunch of IFs, one for each field, and it would also work directly on adding a new column to the table.
Also I can't use triggers because the higher ups said "No triggers!". (If this is indeed the only way, I could try talking to them again about this).