model-writtenrun 4423 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Kyotaro Horiguchi reported that ECPG's Oracle compatibility mode corrupted a preceding numeric value from 123 to 120 by writing a string terminator to str[-1], and supplied a regression test and fix assuming sufficient caller-allocated storage when varcharsize is zero #1.
- Michael Paquier examined the SQLDA allocation paths and ecpg_store_result(), agreed that the storage assumption was sound, and identified the need to backpatch through PostgreSQL 11 #2.
- Michael Paquier committed both patches from #1 with only comment and whitespace edits as f180290847.
- After committing, Michael Paquier reported that the mylodon buildfarm member rejected the regression test's C99 loop-variable declaration and said he would fix it across all branches for consistency #4.
- The thread ended with Kyotaro Horiguchi acknowledging the compatibility issue and Michael Paquier explaining that C99 declarations were supported from PostgreSQL 12 onward; the main fix had landed, while the promised test-portability follow-up was not explicitly confirmed in the thread #5 #6 #7.