Re: [sqlalchemy] SAWarning shows not immediately, but after some time of app execution

2016-08-02 Thread TomS.
On 07/22/2016 05:13 PM, Simon King wrote: On Fri, Jul 22, 2016 at 3:25 PM, TomS. wrote: On 07/19/2016 06:41 PM, Mike Bayer wrote: On 07/19/2016 11:51 AM, TomS. wrote: Hi, We have Flask app which uses SQLAlchemy. Weird error started to happen recently. The difficulty

Re: [sqlalchemy] SAWarning shows not immediately, but after some time of app execution

2016-07-22 Thread Simon King
On Fri, Jul 22, 2016 at 3:25 PM, TomS. wrote: > On 07/19/2016 06:41 PM, Mike Bayer wrote: > > > > On 07/19/2016 11:51 AM, TomS. wrote: > > Hi, > > We have Flask app which uses SQLAlchemy. Weird error started to happen > recently. The difficulty is that we can't reproduce the

Re: [sqlalchemy] SAWarning shows not immediately, but after some time of app execution

2016-07-22 Thread TomS.
On 07/19/2016 06:41 PM, Mike Bayer wrote: On 07/19/2016 11:51 AM, TomS. wrote: Hi, We have Flask app which uses SQLAlchemy. Weird error started to happen recently. The difficulty is that we can't reproduce the error (/figure out conditions causing issue) - maybe someone could help. Any

Re: [sqlalchemy] SAWarning shows not immediately, but after some time of app execution

2016-07-19 Thread Mike Bayer
On 07/19/2016 11:51 AM, TomS. wrote: Hi, We have Flask app which uses SQLAlchemy. Weird error started to happen recently. The difficulty is that we can't reproduce the error (/figure out conditions causing issue) - maybe someone could help. Any hints/tips would be appreciated. There is a

Re: [sqlalchemy] SAWarning shows not immediately, but after some time of app execution

2016-07-19 Thread TomS.
my_ids = [] is initialized in the body of static method (on the top of it) which is run via Flask's route decorator. But I can't understand why following code: my_ids = [] MyModel.id.in_(my_ids) doesn't raise SAWarning if 'an empty sequence' causes warning. Cheers On 07/19/2016 06:14 PM,

Re: [sqlalchemy] SAWarning shows not immediately, but after some time of app execution

2016-07-19 Thread Антонио Антуан
Looks like `my_ids` become empty 'after some time of app execution'. How do you initialize the variable? вт, 19 июля 2016 г., 18:51 TomS. : > Hi, > > We have Flask app which uses SQLAlchemy. Weird error started to happen > recently. The difficulty is that we can't reproduce

[sqlalchemy] SAWarning shows not immediately, but after some time of app execution

2016-07-19 Thread TomS.
Hi, We have Flask app which uses SQLAlchemy. Weird error started to happen recently. The difficulty is that we can't reproduce the error (/figure out conditions causing issue) - maybe someone could help. Any hints/tips would be appreciated. There is a part in the code which constructs IN in