diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2008-08-24 19:52:54 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2008-08-24 19:52:54 +0000 |
commit | 6f60e768837f6b91a75dc2d62dbd215471bf09f7 (patch) | |
tree | 3db99506d1901e0e809821816d899e8a81a8d370 /test/testlib/engines.py | |
parent | e01e972ac305d634cac3d63de6c5fa6688cd56c5 (diff) | |
download | sqlalchemy-6f60e768837f6b91a75dc2d62dbd215471bf09f7.tar.gz |
- The 'length' argument to all Numeric types has been renamed
to 'scale'. 'length' is deprecated and is still accepted
with a warning. [ticket:827]
- The 'length' argument to MSInteger, MSBigInteger, MSTinyInteger,
MSSmallInteger and MSYear has been renamed to 'display_width'.
[ticket:827]
- mysql._Numeric now consumes 'unsigned' and 'zerofill' from
the given kw, so that the same kw can be passed along to Numeric
and allow the 'length' deprecation logic to still take effect
- added testlib.engines.all_dialects() to return a dialect for
every db module
- informix added to sqlalchemy.databases.__all__. Since other
"experimental" dbs like access and sybase are there, informix
should be as well.
Diffstat (limited to 'test/testlib/engines.py')
-rw-r--r-- | test/testlib/engines.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/testlib/engines.py b/test/testlib/engines.py index 3df98d4fc..a6e9fb8b7 100644 --- a/test/testlib/engines.py +++ b/test/testlib/engines.py @@ -66,6 +66,12 @@ def close_open_connections(fn): testing_reaper.close_all() return _function_named(decorated, fn.__name__) +def all_dialects(): + import sqlalchemy.databases as d + for name in d.__all__: + mod = getattr(__import__('sqlalchemy.databases.%s' % name).databases, name) + yield mod.dialect() + class ReconnectFixture(object): def __init__(self, dbapi): self.dbapi = dbapi |