I figured this one out, I had tried to create a attribute synonym by doing this:
class alaID(Base): """ Grouped products """ __tablename__ = "al_ids" __table_args__ = {'schema':'review', 'useexisting':True} [...] generated_name = column_property(select(["master_name"], al_id == literal_column("al_id"), generated_names_t)) name = generated_name [...] This apparently causes some confusion for the mapper when commiting data, but it works fine for reading.... I guess I should use synonym() instead? -- Joakim On 23 Juni, 10:37, Joakim <joakim.lundb...@gmail.com> wrote: > I have started to get this error on some machines I deploy my > application to, but not on my own machine. As far as I can see it is > running the same verison of SQLAlchemy (0.5.8) and MySQLdb (1.2.2), so > I have a hard time understanding the issue. Any Ideas on what could be > causing it? > > Traceback (most recent call last): > [...] > session.commit() > File "/home/joakim/as/lib/python2.6/site-packages/SQLAlchemy-0.5.8- > py2.6.egg/sqlalchemy/orm/session.py", line 671, in commit > self.transaction.commit() > File "/home/joakim/as/lib/python2.6/site-packages/SQLAlchemy-0.5.8- > py2.6.egg/sqlalchemy/orm/session.py", line 388, in commit > self._remove_snapshot() > File "/home/joakim/as/lib/python2.6/site-packages/SQLAlchemy-0.5.8- > py2.6.egg/sqlalchemy/orm/session.py", line 309, in _remove_snapshot > _expire_state(s, None, instance_dict=self.session.identity_map) > File "/home/joakim/as/lib/python2.6/site-packages/SQLAlchemy-0.5.8- > py2.6.egg/sqlalchemy/orm/state.py", line 233, in expire_attributes > not impl.dont_expire_missing or \ -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalch...@googlegroups.com. To unsubscribe from this group, send email to sqlalchemy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en.