]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Deprecate plain string passed to session.query()
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 30 Sep 2019 14:54:50 +0000 (10:54 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 30 Sep 2019 15:26:39 +0000 (11:26 -0400)
commit6acc785316bfe27326230d5010e5adee37b2f91d
tree752fde7d9bde990160908513b2b2d52197c3915e
parent2808efb01af21602ee1650c3b5d987273ee65ea0
Deprecate plain string passed to session.query()

Passing a plain string expression to :meth:`.Session.query` is deprecated,
as all string coercions were removed in :ticket:`4481` and this one should
have been included.   The :func:`.literal_column` function may be used to
produce a textual column expression.

Note this changeset is in the 1.3 branch only.  The 1.4 (currently master)
branch will already have removed this behavior.

Fixes: #4873
Change-Id: I20067a6707c7e2f028c67b1fbf0e8e4d9d136233
doc/build/changelog/unreleased_13/4873.rst [new file with mode: 0644]
lib/sqlalchemy/orm/query.py
test/orm/test_deprecations.py
test/orm/test_froms.py
test/orm/test_query.py
test/orm/test_subquery_relations.py