]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
simplify internal storage of DML ordered values
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 8 Apr 2025 01:41:29 +0000 (21:41 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 10 Apr 2025 14:28:56 +0000 (10:28 -0400)
commit359f2ef70292c364851d5674aa4915665be3a0d0
treef881b13d00cdf31360db2a10e99b89ebdf6a0463
parentd0bc9b206d6ab6fb87c1c294a4ae9511bc0af219
simplify internal storage of DML ordered values

towards some refactorings I will need to do for #12496, this
factors out the "_ordered_values" list of tuples that was used to
track UPDATE VALUES in a specific order.   The rationale for this
separate collection was due to Python dictionaries not maintaining
insert order.   Now that this is standard behavior in Python 3
we can use the same `statement._values` for param-ordered and
table-column-ordered UPDATE rendering.

Change-Id: Id6024ab06e5e3ba427174e7ba3630ff83d81f603
lib/sqlalchemy/orm/bulk_persistence.py
lib/sqlalchemy/orm/persistence.py
lib/sqlalchemy/sql/crud.py
lib/sqlalchemy/sql/dml.py
test/orm/dml/test_update_delete_where.py
test/sql/test_update.py