summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/dialects/postgresql/json.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2020-09-22 10:26:35 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2020-09-22 14:26:18 -0400
commit96888aee7611c15532af2ae47e567f68c28b2474 (patch)
tree88fa6819b09463a2b3b652c48ea9c3e370ba9443 /lib/sqlalchemy/dialects/postgresql/json.py
parente973fd5d5712b7212624b329015633fecfd1a25c (diff)
downloadsqlalchemy-96888aee7611c15532af2ae47e567f68c28b2474.tar.gz
Deprecate negative slice indexes
The "slice index" feature used by :class:`_orm.Query` as well as by the dynamic relationship loader will no longer accept negative indexes in SQLAlchemy 2.0. These operations do not work efficiently and load the entire collection in, which is both surprising and undesirable. These will warn in 1.4 unless the :paramref:`_orm.Session.future` flag is set in which case they will raise IndexError. Fixes: #5606 Change-Id: I5f5dcf984a8f41ab3d0e233ef7553e77fd99a771
Diffstat (limited to 'lib/sqlalchemy/dialects/postgresql/json.py')
0 files changed, 0 insertions, 0 deletions