[sqlalchemy] Re: miss for postgres_from in update() :(

2009-03-05 Thread sector119
I create a small (4 lines) patch for databases/postgres.py def _append_from(self, text, stmt): return text.replace(' WHERE', ' FROM ' + string.join([table.name for table in stmt.kwargs['postgres_from']], ', ') + ' WHERE') def visit_update(self, update_stmt): text = super(PGCompiler,

[sqlalchemy] Re: miss for postgres_from in update() :(

2009-03-05 Thread Michael Bayer
visit_update() would have to be rewritten in the base compiler to support addition of extra components. On Mar 5, 2009, at 5:05 AM, sector119 wrote: I create a small (4 lines) patch for databases/postgres.py def _append_from(self, text, stmt): return text.replace(' WHERE', ' FROM '