Re: [sqlalchemy] `in_` operator does not supports bound parameter

2016-11-04 Thread Mike Bayer
In order to achieve a single parameter affecting a group of items, the statement would have to be modified at the string level before being passed to the database. The single parameter would need to be expanded into the appropriate number of question marks, and the list of parameters would need

Re: [sqlalchemy] .count() hangs indefinitely

2016-11-04 Thread Simon King
On Fri, Nov 4, 2016 at 8:13 AM, James Burke wrote: > Hi All, > > I've run into a odd problem, where calling the count function hangs my code > indefinitely. The odd thing is it was working until recently, so I'm a > little confused. > > customer = >

[sqlalchemy] .count() hangs indefinitely

2016-11-04 Thread James Burke
Hi All, I've run into a odd problem, where calling the count function hangs my code indefinitely. The odd thing is it was working until recently, so I'm a little confused. customer = session.query(Customer).filter(Customer.phone_number.contains([ message['metadata']['MIN']]))