Using 8.1.47 vision with auditing turned onto a database datasource.
I only just noticed this - queries run via system.db.runPrepUpdate queries gets audited in full to the audit log ie the full query itself is logged which is nice for seeing exactly what happened.
The same does not happen when running UPDATE/INSERT statements via runNamedQuery in fact I don’t see anything. I would have expected either the full query or even just the namedQueryPath and the params (though the full query would be preferred in case the named query definition was changed at some point).
Don’t know if I am missing something here about enabling the auditing on NQs but I didn’t see anything on the gateway audit configure page or the named query definition designer portion.