From: Tim Ryan Date: Fri, 26 May 2023 19:26:00 +0000 (-0400) Subject: change conn.execute to connection.execute (#9842) X-Git-Tag: rel_2_0_16~28 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b42518b1325ea79283a6d0560afc484da2cb5c20;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git change conn.execute to connection.execute (#9842) makes code executable --- diff --git a/doc/build/changelog/migration_20.rst b/doc/build/changelog/migration_20.rst index 1fe47b7ac1..6582b6811c 100644 --- a/doc/build/changelog/migration_20.rst +++ b/doc/build/changelog/migration_20.rst @@ -770,7 +770,7 @@ the ORM-level :meth:`_orm.Session.execute` method):: t = Table("t", metadata_obj, autoload_with=connection) # execute SQL statements - result = conn.execute(t.select()) + result = connection.execute(t.select()) **Discussion**