]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
implement correct errors for Row immutability
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 9 Dec 2021 19:23:42 +0000 (14:23 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 9 Dec 2021 19:23:42 +0000 (14:23 -0500)
commitf113e979219e20a22044c4b262e4531ba9993b8a
treef0c3f868f1e7ca64ffa5518208b81945b7a723f0
parentaf50c8064d668ba33ef2399a288fd1594b1b5602
implement correct errors for Row immutability

Corrected the error message for the ``AttributeError`` that's raised when
attempting to write to an attribute on the :class:`_result.Row` class,
which is immutable. The previous message claimed the column didn't exist
which is misleading.

Fixes: #7432
Change-Id: If0e2cbd3f763dca6c99a18aa42252c69f1207d59
doc/build/changelog/unreleased_14/7432.rst [new file with mode: 0644]
lib/sqlalchemy/engine/row.py
test/sql/test_resultset.py