Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,17 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
before; users should call `cursor.setinputsizes()` to work around this.

### Fixed
- **GH-745:** `executemany` auto-detect binds money-range `Decimal`
values as `SQL_NUMERIC` with a batch-wide precision/scale (still via
`SQL_C_CHAR` string values), so a comparison against a smaller numeric
column no longer overflows. SQL precision/scale stay on `columnSize` /
`decimalDigits`; the CHAR array stride uses a separate `bufferSize`
sized from the longest fixed-point encoding (e.g. `Decimal("1E-38")`),
so near-max precision values are not rejected by the array buffer.
The `setinputsizes` DECIMAL/NUMERIC string path uses the same buffer-width
split; buffer width is derived from text produced by the protected
conversion path so failed conversions still raise a sanitized `ValueError`
with row/column details (no raw MemoryError/RuntimeError leakage).
Comment on lines +102 to +105
- **GH-769:** Corrected 11 `GetInfoConstants` IDs for scalar functions, outer
joins, driver handles, cursor attributes, catalog support, and parameter
descriptions. Added the ODBC name `SQL_TIMEDATE_FUNCTIONS` as an alias of
Expand Down
Loading