From: Iuri de Silvio Date: Sun, 17 Dec 2023 17:39:28 +0000 (+0100) Subject: Fix engine connect example in migration guide (#10757) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca9adf3028095ff28bdef823d6f6cefc12815b3c;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Fix engine connect example in migration guide (#10757) You can't fetchall after connection was closed. --- 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