Skip to content

5.0.7 — 2026-09-01

← 5.1.0 | 5.0.6 → | ↑ 5.x series

Fixed

Adapters - StarRocks

  • Real SQLAlchemy BEGIN/ROLLBACK - StarRocks atomic transactions no longer auto-commit each DML when using SQLAlchemy.
    • Patched StarRocksDialect.do_begin to emit explicit BEGIN (skipped under autocommit for DDL)
    • Sync and async connect args set autocommit=False and init_command="SET enable_sql_transaction = TRUE"

Changed

Adapters / Helpers / Configs - Typing

  • Drop Leftover Ty Suppressions - Cleared remaining type-checker suppressions after the 5.0.6 lint cleanup.
    • Aligned StarRocks and MySQL session-manager patch signatures
    • Simplified email binary reads, hoisted ModelPrivateAttr, and logged exceptions with explicit exc_info

Tests

Tests - Atomic Transactions

  • StarRocks Atomic BDD Coverage - Expanded sync and async atomic scenarios for StarRocks where shared-nothing SQL transactions are supported.
    • Added StarRocks to update, different entity types, and error-handling outlines (sync and async)
    • Documented shared-nothing limits: nested blocks, multi same-table insert, insert-after-update
    • Capture ORM attrs before insert so expired lazy-loads do not trigger StarRocks error 5307
    • Schema helpers temporarily no-op do_begin during DDL under autocommit