Re: [sqlalchemy] Bulk insertion with null values

2016-01-07 Thread Tobias
Thanks for your fast response! On Wednesday, January 6, 2016 at 10:42:59 PM UTC+1, Michael Bayer wrote: > > I don't have a solution for that at the moment other than to use a > straight Core insert, if there aren't other complicating factors. > In my case I am having a model with inheritance

Re: [sqlalchemy] Bulk insertion with null values

2016-01-06 Thread Mike Bayer
I don't have a solution for that at the moment other than to use a straight Core insert, if there aren't other complicating factors. bulk_insert_mappings() tries to keep the same contract as that of a regular Session.flush(), where None means to "omit" the value, which has affects whether or not

[sqlalchemy] Bulk insertion with null values

2016-01-06 Thread Tobias
Hi, I am using Session.bulk_insert_mappings() to insert a number of entities. This works great except when there are entities with None values. For example the following call issues