]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
reorganize column collection init to be local
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 1 Feb 2025 19:39:57 +0000 (14:39 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 5 Feb 2025 19:03:49 +0000 (14:03 -0500)
commit3cd9a5b42f850618141ec459cffe30d0ade0f191
tree950eb34d9a4b882fec45cea471c8f9c9903fac91
parentd69765829c9fbc98f21a22dbc496f2b7b22dc52c
reorganize column collection init to be local

Reorganized the internals by which the `.c` collection on a
:class:`.FromClause` gets generated so that it is resilient against the
collection being accessed in concurrent fashion.   An example is creating a
:class:`.Alias` or :class:`.Subquery` and accessing it as a module level
variable.  This impacts the Oracle dialect which uses such module-level
global alias objects but is of general use as well.

Fixes: #12302
Change-Id: I30cb07c286affce24e2d85e49f9df5b787438d86
doc/build/changelog/unreleased_20/12302.rst [new file with mode: 0644]
lib/sqlalchemy/sql/dml.py
lib/sqlalchemy/sql/elements.py
lib/sqlalchemy/sql/schema.py
lib/sqlalchemy/sql/selectable.py
test/sql/test_selectable.py