diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-04-06 01:15:46 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-04-06 01:15:46 +0000 |
commit | 680c27607328a8f89e446601f7bc7ed56394dc27 (patch) | |
tree | 4f5fdc632d648cb723373c06a82eba3332c27807 /test/proxy_engine.py | |
parent | 753b7c2d3ebe8753d70ff8ed33dfbcdddb5e5d29 (diff) | |
download | sqlalchemy-680c27607328a8f89e446601f7bc7ed56394dc27.tar.gz |
moves the binding of a TypeEngine object from "schema/statement creation" time into "compilation" time
Diffstat (limited to 'test/proxy_engine.py')
-rw-r--r-- | test/proxy_engine.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/proxy_engine.py b/test/proxy_engine.py index 170e526d9..2a2cebc5b 100644 --- a/test/proxy_engine.py +++ b/test/proxy_engine.py @@ -194,7 +194,7 @@ class ProxyEngineTest2(PersistTest): return 'a' def type_descriptor(self, typeobj): - if typeobj == types.Integer: + if isinstance(typeobj, types.Integer): return TypeEngineX2() else: return TypeEngineSTR() @@ -224,16 +224,16 @@ class ProxyEngineTest2(PersistTest): engine = ProxyEngine() engine.storage.engine = EngineA() - a = engine.type_descriptor(sqltypes.Integer) + a = sqltypes.Integer().engine_impl(engine) assert a.convert_bind_param(12, engine) == 24 assert a.convert_bind_param([1,2,3], engine) == [1, 2, 3, 1, 2, 3] - a2 = engine.type_descriptor(sqltypes.String) + a2 = sqltypes.String().engine_impl(engine) assert a2.convert_bind_param(12, engine) == "'12'" assert a2.convert_bind_param([1,2,3], engine) == "'[1, 2, 3]'" engine.storage.engine = EngineB() - b = engine.type_descriptor(sqltypes.Integer) + b = sqltypes.Integer().engine_impl(engine) assert b.convert_bind_param(12, engine) == 'monkey' assert b.convert_bind_param([1,2,3], engine) == 'monkey' |