summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authormike bayer <mike_mp@zzzcomputing.com>2022-08-04 20:30:19 +0000
committerGerrit Code Review <gerrit@ci3.zzzcomputing.com>2022-08-04 20:30:19 +0000
commit828a1a0d143976c0e36a4772d4bd908ff6484735 (patch)
tree4d477ebe2709cfea5d84f7cf78ff5f7939b61aef /lib
parent7c8572f004c0567482de98eb5697d8bb5e328b2d (diff)
parent8032bfdcee30023aa2facf80be0d3627a8467149 (diff)
downloadsqlalchemy-828a1a0d143976c0e36a4772d4bd908ff6484735.tar.gz
Merge "deprecate Query.instances()" into main
Diffstat (limited to 'lib')
-rw-r--r--lib/sqlalchemy/orm/query.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/sqlalchemy/orm/query.py b/lib/sqlalchemy/orm/query.py
index 99131e3e9..374ae5cc8 100644
--- a/lib/sqlalchemy/orm/query.py
+++ b/lib/sqlalchemy/orm/query.py
@@ -2783,6 +2783,13 @@ class Query(
return _column_descriptions(self, legacy=True)
+ @util.deprecated(
+ "2.0",
+ "The :meth:`_orm.Query.instances` method is deprecated and will "
+ "be removed in a future release. "
+ "Use the Select.from_statement() method or aliased() construct in "
+ "conjunction with Session.execute() instead.",
+ )
def instances(
self,
result_proxy: CursorResult[Any],