Mock strategy and DDL.on fails

Issue #1123 resolved
Former user created an issue

The mock strategy fails with an exception because engine.bind.name is not defined. The patch adds the name attribute as property

Index: engine/strategies.py
===================================================================
--- engine/strategies.py        (Revision 9540)
+++ engine/strategies.py        (Arbeitskopie)
@@ -190,6 +190,7 @@

         engine = property(lambda s: s)
         dialect = property(lambda s:s._dialect)
+        name = property(lambda s:s._dialect.name)

         def contextual_connect(self, **kwargs):
             return self

Comments (3)

  1. Log in to comment