Re: [sqlalchemy] SQLAlchemy 1.1 cause core dump committing multiple dirty records outside of function where mutation happens

2017-08-22 Thread Konstantin Kashin
Alright... I was able to track this down to a cPython problem in Python 3.6.0. This reproes with SQLite as well. When moving to Python 3.6.2, this goes away. This fixed the culprit: https://github.com/serhiy-storchaka/cpython/commit/5aafff22a20715d276a23d30b7335bbecbc31754 On Tuesday, August

Re: [sqlalchemy] SQLAlchemy 1.1 cause core dump committing multiple dirty records outside of function where mutation happens

2017-08-22 Thread Simon King
On Tue, Aug 22, 2017 at 9:26 AM, Konstantin Kashin wrote: > # Setup > Suppose I have a table with two fields: a string primary key and a boolean > flag. I want to query multiple rows and then update the flag across all of > them, then commit my changes. I have a MySQL DB with

[sqlalchemy] SQLAlchemy 1.1 cause core dump committing multiple dirty records outside of function where mutation happens

2017-08-22 Thread Konstantin Kashin
# Setup Suppose I have a table with two fields: a string primary key and a boolean flag. I want to query multiple rows and then update the flag across all of them, then commit my changes. I have a MySQL DB with the following DBAPI