diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2011-02-01 16:34:37 -0500 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2011-02-01 16:34:37 -0500 |
| commit | 5a2c332f5e2faf321a89e93d5d183d7ec3767084 (patch) | |
| tree | 46736b890c925c360d05a55009bd025ef9e64d9f /test/dialect/test_firebird.py | |
| parent | 7fcbd39118e470a8ef04256d486f46c176a21b0c (diff) | |
| download | sqlalchemy-5a2c332f5e2faf321a89e93d5d183d7ec3767084.tar.gz | |
- Some adjustments so that Interbase is supported as well.
FB/Interbase version idents are parsed into a structure
such as (8, 1, 1, 'interbase') or (2, 1, 588, 'firebird')
so they can be distinguished. [ticket:1885]
- fixed relfection of the "autoincrement" flag against a default
placed on the column.
Diffstat (limited to 'test/dialect/test_firebird.py')
| -rw-r--r-- | test/dialect/test_firebird.py | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/test/dialect/test_firebird.py b/test/dialect/test_firebird.py index 532a93ed0..c1b4c590c 100644 --- a/test/dialect/test_firebird.py +++ b/test/dialect/test_firebird.py @@ -355,10 +355,18 @@ class MiscTest(TestBase): select([func.count(t.c.id)], func.length(t.c.name) == 5).execute().first()[0] == 1 - def test_server_version_info(self): - version = testing.db.dialect.server_version_info - assert len(version) == 3, 'Got strange version info: %s' \ - % repr(version) + def test_version_parsing(self): + for string, result in [ + ("WI-V1.5.0.1234 Firebird 1.5", (1, 5, 1234, 'firebird')), + ("UI-V6.3.2.18118 Firebird 2.1", (2, 1, 18118, 'firebird')), + ("LI-V6.3.3.12981 Firebird 2.0", (2, 0, 12981, 'firebird')), + ("WI-V8.1.1.333", (8, 1, 1, 'interbase')), + ("WI-V8.1.1.333 Firebird 1.5", (1, 5, 333, 'firebird')), + ]: + eq_( + testing.db.dialect._parse_version_info(string), + result + ) @testing.provide_metadata def test_rowcount_flag(self): |
