]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
change conn.execute to connection.execute (#9842)
authorTim Ryan <ryantimjohn@gmail.com>
Fri, 26 May 2023 19:26:00 +0000 (15:26 -0400)
committerGitHub <noreply@github.com>
Fri, 26 May 2023 19:26:00 +0000 (21:26 +0200)
makes code executable

doc/build/changelog/migration_20.rst

index 1fe47b7ac1736f74062773f0258f6e555885a57c..6582b6811c2e4631e99ebc416597a8612b60a25f 100644 (file)
@@ -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**