[sqlalchemy] Re: postgresql rules and update

2007-06-13 Thread Michael Bayer
On Jun 13, 2007, at 8:32 AM, Antonio wrote: hi all, I've partition a table in PostgreSQL, with rules on UPDATE, DELETE and INSERT. When I INSERT a row, ok, but when i UPDATE a row, the program raise: ConcurrentModificationError: Updated rowcount 0 does not match number of objects

[sqlalchemy] Re: postgresql rules and update

2007-06-13 Thread Antonio
* mercoledì 13 giugno 2007, alle 09:15, Michael Bayer wrote : SQLAlchemy's ORM relies upon cursor.rowcount after an UPDATE or DELETE to get the number of rows affected. Why exactly does your rule cause this to fail ? because is a 'INSTEAD RULE' the base table 'prev' has no row ...