Commits

Mike Bayer committed b6144e7

fix to silent "recursive" bug in schema getattr that was somehow running only 994 times

Comments (0)

Files changed (3)

+0.1.2
+- fixed a recursive call in schema that was somehow running 994 times then returning
+normally.  broke nothing, slowed down everything.  thanks to jpellerin for finding this.
 0.1.1
 - small fix to Function class so that expressions with a func.foo() use the type of the
 Function object (i.e. the left side) as the type of the boolean expression, not the 

lib/sqlalchemy/schema.py

     def __getattr__(self, key):
         """proxies method calls to an underlying implementation object for methods not found
         locally"""
-        if not hasattr(self, '_impl'):
+        if not self.__dict__.has_key('_impl'):
             raise AttributeError(key)
         return getattr(self._impl, key)
 
 from setuptools import setup, find_packages
 
 setup(name = "SQLAlchemy",
-    version = "0.1.1",
+    version = "0.1.2",
     description = "Database Abstraction Library",
     author = "Mike Bayer",
     author_email = "mike_mp@zzzcomputing.com",
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.