diff --git a/PyPI_Description.md b/PyPI_Description.md index 038a70d5c..df308fde5 100644 --- a/PyPI_Description.md +++ b/PyPI_Description.md @@ -35,30 +35,21 @@ PyBind11 provides: - Memory-safe bindings - Clean and Pythonic API, while performance-critical logic remains in robust, maintainable C++. -## What's new in v1.18.0 +## What's new in v1.19.0 ### Enhancements -- **Custom Application Names** - Connection strings accept `APP` and `Application Name`, sharing the effective name across synchronous, async, and bulk-copy paths. The async and bulk-copy default changes from `mssql-python` to `MSSQL-Python`; exact-name telemetry filters may need updating (#884). -- **Faster Row-to-Dictionary Conversion** - Reuse row-mapping metadata to reduce the overhead of converting fetched rows to dictionaries (#847). -- **Faster Single-Row Fetching** - Reuse cursor-scoped native state for eligible `fetchone()`, `fetchmany(1)`, `fetchval()`, and iteration paths while retaining Python fallbacks (#858). -- **Faster Output-Converter Batching** - Reduce conversion and row-construction overhead when fetching batches with output converters (#852). -- **Faster Size-One Text Fetches** - Avoid repeating text-fetch preparation for `fetchmany(1)` without prefetching rows (#891). -- **Faster Pyformat Conversion** - Convert pyformat placeholders in a single pass and cache converted statements for repeated execution (#888). -- **Prepared Statement Reuse** - Compatible re-executions of the same parameterized SQL retain parameter bindings so drivers can reuse the prepared statement (#886). -- **Faster Rust-Backed Execution** - Reduce SQL-text processing and RPC parameter-serialization overhead in Rust-backed execution paths (#896) *(via `mssql-python-rs`)*. -- **macOS Strict TLS Improvements** - Rust-backed Strict connections can negotiate TLS 1.3, with post-quantum key exchange on supported macOS versions (#896) *(via `mssql-python-rs`)*. -- **Rust ODBC Table-Valued Parameters** - Add table-valued parameter support in the opt-in Rust ODBC provider (#896) *(via `mssql-python-rs`)*. +- **Connection Retry Policy** - Add optional `RetryPolicy` configuration for retrying transient failures during `connect()` and `Connection()` initialization; existing behavior is unchanged without a policy (#751). +- **Table-Valued Parameters** - Add `TableValuedParameter` definitions and synchronous execution through the default ODBC provider, including streamed rows, empty inputs, and nullable cells (#789). +- **Structured Error Diagnostics** - Expose optional `sqlstate` and `native_error` attributes on DB-API exceptions for synchronous ODBC errors while preserving existing exception messages and arguments (#909, #913). +- **Synchronous Query Cancellation** - Add best-effort `Cursor.cancel()` for supported synchronous execute and fetch operations, with operation-scoped requests and checked recovery. Cancellation does not implicitly roll back transactions; wait for the active operation to finish before reuse (#911, #915). +- **POSIX Native Binary Hardening** - Enable stack protection and supported fortification for the native extension, with additional Linux linker hardening (#810). ### Bug Fixes -- **Synapse Pooled Connection Close** - Avoid an unsupported isolation-level reset when closing autocommit-on pooled connections to Azure Synapse dedicated SQL pools (#889). -- **Explicit Pooled Checkout Timeouts** - Respect an explicit positive connection timeout during pooled checkout and restore the original timeout after successful validation (#897). -- **Arrow Reader Cross-Thread Shutdown** - Coordinate reader close and cancellation with batch operations to prevent races and protect subsequent cursor results (#892). -- **Correct Pyformat Placeholder Handling** - Preserve placeholder-like text inside SQL literals, quoted identifiers, and comments, and handle escaped percent signs consistently (#888). -- **Rust-Backed Connection Reliability** - Fix connection-timeout handling, prepared-statement lifetime and cancellation, isolation-change cursor preservation, and connection stack overflow on small stacks (#896) *(via `mssql-python-rs`)*. -- **Rust ODBC Streaming Order** - Stream data-at-execution values in their bound parameter order in the opt-in Rust ODBC provider (#896) *(via `mssql-python-rs`)*. -- **SQL_VARIANT Length Validation** - Reject malformed oversized scalar payload lengths instead of truncating them during Rust-backed decoding (#896) *(via `mssql-python-rs`)*. +- **Lossless Batch Parameter Inference** - Preserve Unicode, Decimal, and mixed-type values in `executemany` batches, including embedded and trailing NULs, while retaining explicit input-size overrides (#907). +- **Numeric Binding for Money-Range Decimals** - Bind auto-detected `executemany` Decimal columns as `SQL_NUMERIC` with batch-wide precision and scale, avoiding the money-range VARCHAR shortcut that can cause numeric overflow (#752). +- **Korean VARCHAR Encoding** - Include and verify CP949 conversion modules in manylinux builds to restore Korean VARCHAR conversion fidelity (#910). For more information, please visit the project link on Github: https://github.com/microsoft/mssql-python diff --git a/mssql_python/__init__.py b/mssql_python/__init__.py index ca6909db3..6e2ab8222 100644 --- a/mssql_python/__init__.py +++ b/mssql_python/__init__.py @@ -15,7 +15,7 @@ from .helpers import Settings, get_settings, _settings, _settings_lock # Driver version -__version__ = "1.18.0" +__version__ = "1.19.0" # Exceptions # https://www.python.org/dev/peps/pep-0249/#exceptions diff --git a/setup.py b/setup.py index c73adb539..7001212db 100644 --- a/setup.py +++ b/setup.py @@ -161,7 +161,7 @@ def finalize_options(self): setup( name="mssql-python", - version="1.18.0", + version="1.19.0", description="A Python library for interacting with Microsoft SQL Server", long_description=open("PyPI_Description.md", encoding="utf-8").read(), long_description_content_type="text/markdown",