]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
fix to silent "recursive" bug in schema getattr that was somehow running only 994... rel_0_1_2
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 24 Feb 2006 00:28:10 +0000 (00:28 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 24 Feb 2006 00:28:10 +0000 (00:28 +0000)
CHANGES
lib/sqlalchemy/schema.py
setup.py

diff --git a/CHANGES b/CHANGES
index 5063dca9e8a2c5bfbe44c7fcc428848824b9581e..685ecb4cd3b06fe7cb775f34611d97a9928b8265 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,6 @@
+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 
index bb996f7d4a50e94ce0a337ecc9bf682951f768d6..8f5523138087be84c7f89b0ca825bf45dc9f2867 100644 (file)
@@ -49,7 +49,7 @@ class SchemaItem(object):
     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)
 
index f7c2898028913c415652afe4e3ed4ad44b6f8d01..61ef5497cdb1c437b67345d6e301879a4aa1b8b8 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -3,7 +3,7 @@ use_setuptools()
 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",