model-writtenrun 9679 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Ryo Matsumura proposed an ECPG bytea host variable to preserve embedded zero bytes and avoid application-side escaping without changing varchar compatibility; binary parameters would go directly to libpq, while results would still require decoding #1.
- The first patch implemented varchar-like length-and-array structures, binary parameter transport, hexadecimal result decoding and tests for static SQL, prepared statements, arrays, truncation and named descriptors, while leaving escape-format results unsupported #2.
- Michael Meskes questioned standards compatibility and suggested considering BLOB, while Takayuki Tsunakawa argued for matching the server-side bytea name and reserving BLOB for future standard large-object functionality; Matsumura retained bytea and removed unrelated typedef-list changes #3 #5 #6 #8.
- Meskes accepted the direction provided it did not conflict with the standard, but objected to raw binary debug output; Matsumura changed logging and expected test output to hexadecimal and added documentation #10 #17.
- After discussion of SQLDA compatibility, Matsumura clarified that automatic binary results in SQLDA were outside the proposal, while explicitly fetching into bytea host variables through named SQL descriptors was already supported #13 #14 #16.
- Following a review gap, Meskes agreed that the existing VARCHAR declaration footnote was misleading, and Matsumura removed it in the rebased, consolidated patch #19 #21.
- Meskes questioned why descriptor assignment bypassed ecpg_store_input() and stored length alongside payload; Matsumura explained two alternatives, then adopted separate data_len storage and extracted descriptor helper functions in the final revision #22 #23 #26 #29.
- Meskes committed the final patch unchanged as 050710b369 and announced completion; Matsumura's acknowledgment closed the thread, with hexadecimal-only output decoding and the SQLDA scope exclusion retained #29 #30 #31.