[sqlalchemy] Re: Update with where, ORM with joined table inheritance

2016-06-23 Thread Douglas Russell
Thanks, that would definitely be an option if it weren't for the joined table inheritance as we need to be sure that the whole object is being updated as one. Cheers, Douglas On Thursday, 23 June 2016 16:57:29 UTC-4, Jonathan Vanasco wrote: > > for what it's worth... > > I handle a similar

[sqlalchemy] Re: Update with where, ORM with joined table inheritance

2016-06-23 Thread Jonathan Vanasco
for what it's worth... I handle a similar situation with: sql: begin; sql: select Foo for update; python: if Foo.revision_id != expected: raise IntegrityError() sql: update Foo set column = value; sql: commit; -- You received this message because you are subscribed to the