From f48f671223a20b161ca819cf7d6298e43b8ba5fe Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Mon, 3 Feb 2020 19:07:00 -0800 Subject: Refs #31233 -- Changed DatabaseWrapper._nodb_connection to _nodb_cursor(). It is now a method instead of a property and returns a context manager that yields a cursor on entry and closes the cursor and connection upon exit. --- docs/releases/3.1.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'docs') diff --git a/docs/releases/3.1.txt b/docs/releases/3.1.txt index 903e2510ba..58fed5080a 100644 --- a/docs/releases/3.1.txt +++ b/docs/releases/3.1.txt @@ -386,6 +386,11 @@ backends. on databases that support time zones. Previously, it was ``None`` on databases that support time zones. +* ``connection._nodb_connection`` property is changed to the + ``connection._nodb_cursor()`` method and now returns a context manager that + yields a cursor and automatically closes the cursor and connection upon + exiting the ``with`` statement. + Dropped support for MariaDB 10.1 -------------------------------- -- cgit v1.3