From e4467a2b869506f3e826bef483211950a44b1071 Mon Sep 17 00:00:00 2001 From: Iuri de Silvio Date: Sun, 17 Dec 2023 18:39:28 +0100 Subject: [PATCH] Fix engine connect example in migration guide (#10757) You can't fetchall after connection was closed. (cherry picked from commit ca9adf3028095ff28bdef823d6f6cefc12815b3c) --- doc/build/changelog/migration_20.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/build/changelog/migration_20.rst b/doc/build/changelog/migration_20.rst index fe86338ee2..794d1d80fb 100644 --- a/doc/build/changelog/migration_20.rst +++ b/doc/build/changelog/migration_20.rst @@ -296,7 +296,7 @@ as a bonus our program is much clearer:: # select() now accepts column / table expressions positionally result = connection.execute(select(foo.c.id)) - print(result.fetchall()) + print(result.fetchall()) The goal of "2.0 deprecations mode" is that a program which runs with no :class:`_exc.RemovedIn20Warning` warnings with "2.0 deprecations mode" turned -- 2.47.2