]> 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:24:29 +0000 (14:24 -0500)
commit5ae1c14f4c8cd1629b1730cd146cb2a71561b5e2
tree9ba2b1ca3c38f7fb1a83a03b89fb5ec1c3eacf2e
parent09499bfa6fadc98c92ee0cc4588e14dc27152f5d
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
(cherry picked from commit f113e979219e20a22044c4b262e4531ba9993b8a)
doc/build/changelog/unreleased_14/7432.rst [new file with mode: 0644]
lib/sqlalchemy/engine/row.py
test/sql/test_resultset.py