Changelog: Callback functions for session or fetch callbacks didn't work properly when passing connection->thread_state in threaded environment. Instead we acquire and release the GIL explicitly in these callback functions. https://github.com/mariadb-corporation/mariadb-connector-python/releases/tag/v1.1.12 PR: 286243 MFH: 2025Q2