Infinite loop calling in_() with PGArray column
Issue #2957
resolved
This enters an infinite loop calling in_()
:
from sqlalchemy import Column, Integer, Table, MetaData, literal
from sqlalchemy.dialects.postgresql.base import PGArray
tbl = Table('foo', MetaData(), Column('bar', PGArray(Integer)))
literal('3').in_(tbl.c.bar)
An array as the right side of an IN
operator isn't valid in PostgreSQL of course, but an infinite loop is still a bit too drastic.
Happens in 0.8.4 as well as on the bleeding edge.
Comments (5)
-
repo owner -
repo owner yes it was you!
#2726! -
Account Deleted Agh, my arch-nemesis: last-year-me! : )
-
repo owner alrighty, just more checks in in_() for now
-
repo owner - removed milestone
Removing milestone: 0.8.xx (automated comment)
- Log in to comment
agh this is that
__getitem__()
thing again! where we used to raise an exception on__iter__()
to prevent this, but then someone complained about that, now what was the problem with that....