model-writtenrun 9894 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Higuchi, Daisuke reported SQLDA numeric values losing significant digits and supplied a buffer-size correction plus regression coverage in #1, requesting backports.
- Higuchi questioned whether the compatibility SQLDA numeric branch was unreachable because Informix mode maps numeric to decimal in #2; the submitted and committed fixes retained that branch.
- After several months, Dmitry Dolgov requested a rebase in #3, and Higuchi supplied #4 with the same fix adapted to the current regression tests.
- Dmitry reported that applying the patches still left truncated values in his test in #5; Higuchi reported successful local results and passing regression tests in #6, asking for details to explain the discrepancy.
- Tom Lane identified an additional dangling-pointer risk when ndigits is zero and posted #7, removing the guards and correcting an obsolete comment while retaining Higuchi's buffer-size fix.
- Tom committed #7 as ecfd557956, adding a zero-value regression case and backporting the fix to all supported versions.
- After that commit, Higuchi traced the removed guards to an earlier memcpy crash workaround in #8; Tom then identified NaN as the case without an allocated digit buffer and considered a sign check in #9.
- Tom instead guarded copying with num->buf and added NaN regression coverage in 06c723447b, explaining the choice in the final message #10; the follow-up was also backported to all supported versions.