]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Restore subquery.as_scalar() w/ deprecation
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 10 Sep 2019 16:46:21 +0000 (12:46 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 11 Sep 2019 05:57:47 +0000 (01:57 -0400)
commit3b85eeb5d2e662141139ad54ccaad5df24ad9b7d
tree55b1a571d91083fc55306c62dda20d6efd2b9ae7
parent7afcb39a962d383e5ba04179c1b13131fb08a787
Restore subquery.as_scalar() w/ deprecation

Apparently Alias had an .as_scalar() method, so restore an
equivalent to Subquery with an appropriate deprecation warning.

Fixes: #4854
Change-Id: I6255d61b7d82487ca90ba8ee79d4b3a74e7cbe38
doc/build/changelog/unreleased_14/4617_scalar.rst
lib/sqlalchemy/sql/selectable.py
test/sql/test_deprecations.py