From 94ac052104cd07ae0dace2d1b1ac6a7144412c44 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Fri, 24 Feb 2006 00:28:10 +0000 Subject: [PATCH] fix to silent "recursive" bug in schema getattr that was somehow running only 994 times --- CHANGES | 3 +++ lib/sqlalchemy/schema.py | 2 +- setup.py | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index 5063dca9e8..685ecb4cd3 100644 --- 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 diff --git a/lib/sqlalchemy/schema.py b/lib/sqlalchemy/schema.py index bb996f7d4a..8f55231380 100644 --- a/lib/sqlalchemy/schema.py +++ b/lib/sqlalchemy/schema.py @@ -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) diff --git a/setup.py b/setup.py index f7c2898028..61ef5497cd 100644 --- 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", -- 2.47.2