diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-02-28 23:18:43 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-02-28 23:18:43 +0000 |
commit | a4ba9b5414ee3d18667b67d57a361845a8354d3c (patch) | |
tree | c6df8ddb0ffa2726c7166d0808c57df8bbdd632e /lib/sqlalchemy/ext/proxy.py | |
parent | 7c1bb1f7a23464191461f5793c323dd7637ba594 (diff) | |
download | sqlalchemy-a4ba9b5414ee3d18667b67d57a361845a8354d3c.tar.gz |
oid inits at compilation time/when needed again, added a unit test
Diffstat (limited to 'lib/sqlalchemy/ext/proxy.py')
-rw-r--r-- | lib/sqlalchemy/ext/proxy.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/sqlalchemy/ext/proxy.py b/lib/sqlalchemy/ext/proxy.py index d9a830c66..783ea969e 100644 --- a/lib/sqlalchemy/ext/proxy.py +++ b/lib/sqlalchemy/ext/proxy.py @@ -28,10 +28,8 @@ class BaseProxyEngine(object): return "%s(%s)" % (self.__class__.__name__, id(self)) def oid_column_name(self): - # NOTE: setting up mappers fails unless the proxy engine returns - # something for oid column name, and the call happens too early - # to proxy, so effecticely no oids are allowed when using - # proxy engine + # oid_column should not be requested before the engine is connected. + # it should ideally only be called at query compilation time. e= self.get_engine() if e is None: return None |