If I first get connection via session.connection() then subsequent calls to engine.contextual_connect() return, it seems, same connection and everything works. The only test that fails id test_connection_6::
def _do_test_con(self, contextual, contextual2): transaction = session.create_transaction() if contextual: con = meta1.engine.contextual_connect() else: con = session.connection(Tab1) if contextual2: con = meta1.engine.contextual_connect() else: con = session.connection(Tab1) tran = con.begin() con.execute("insert into tab1 (name) values ('Plain')") self.assertEqual(len(self.sel("select * from tab1", con.connection)), 1) self.assertEqual(len(self.sel("select * from tab1", self.con1)), 0) tran.commit() self.assertEqual(len(self.sel("select * from tab1", con.connection)), 1) #self.assertEqual(len(self.sel("select * from tab1", self.con1)), 0) transaction.rollback() self.assertEqual(len(self.sel("select * from tab1", self.con1)), 0) def test_connection_3(self): self._do_test_con(False, False) def test_connection_4(self): self._do_test_con(False, True) def test_connection_5(self): self._do_test_con(True, False) def test_connection_6(self): self._do_test_con(True, True) Is this a feature or a bug? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalchemy@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en -~----------~----~----~----~------~----~------~--~---