mirror of
https://github.com/ansible/awx.git
synced 2026-06-27 01:18:02 -02:30
* Refactor result_stdout_raw_handle to use parameterized COPY SQL. Replace f-string SQL construction with psycopg.sql composables and bound parameters so security scans no longer flag formatted raw SQL in the unified jobs stdout path. Fix sqlite_copy mock rendering for psycopg3 SQL composables. * Fix sqlite_copy mock without psycopg SQL internals. Load stdout from the first populated event table instead of rendering psycopg composables, which use version-specific private attributes. * Use sql.Literal in COPY query for Django cursor.copy compatibility. Django's cursor.copy() does not forward bind parameters to psycopg, which caused stdout API 500s against real PostgreSQL.