]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
add note that schema translate not supported per object
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 21 Mar 2022 13:07:51 +0000 (09:07 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 21 Mar 2022 13:10:06 +0000 (09:10 -0400)
Fixes: #7832
Change-Id: I241e4cbd1b5d6df46e49e29e4ab1cac021f2895c
(cherry picked from commit 75a601e2fda7b849b858455eaa17d772bd2381e5)

doc/build/core/connections.rst

index 97191f5aaa69b71b77f7b04b80f42af98f2a37a7..aaf118b1bf446c90547a469704b3a578c86e1640 100644 (file)
@@ -941,6 +941,14 @@ as the schema name is passed to these methods explicitly.
 
       session = Session(schema_engine)
 
+  When using the ORM, the schema translate feature is only supported as
+  **a single schema translate map per Session**.   It will **not work** if
+  different schema translate maps are given on a per-statement basis, as
+  the ORM :class:`_orm.Session` does not take current schema translate
+  values into account for individual objects.  In other words, all
+  objects loaded in a particular :class:`_orm.Session` must be based on the
+  **same** ``schema_translate_map``.
+
       ...