Sensitive values are rewritten in the response, in memory, before they reach the client. The request itself is never touched, so the query your agent wrote is the query your database runs.