From 878c37614efd311794aa50467dbb9e3fe972fdff Mon Sep 17 00:00:00 2001 From: Mike Knudson Date: Wed, 23 Feb 2022 13:51:50 -0700 Subject: [PATCH] Add missing query before trying to print (#7665) The documentation had a print before a query was run. --- lib/sqlalchemy/ext/automap.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/sqlalchemy/ext/automap.py b/lib/sqlalchemy/ext/automap.py index eb746dcee7..e0f532152f 100644 --- a/lib/sqlalchemy/ext/automap.py +++ b/lib/sqlalchemy/ext/automap.py @@ -56,6 +56,7 @@ asking it to reflect the schema and produce mappings:: # collection-based relationships are by default named # "_collection" + u1 = session.query(User).first() print (u1.address_collection) Above, calling :meth:`.AutomapBase.prepare` while passing along the -- 2.47.2