diff options
author | Lele Gaifax <lele@metapensiero.it> | 2007-12-15 09:02:41 +0000 |
---|---|---|
committer | Lele Gaifax <lele@metapensiero.it> | 2007-12-15 09:02:41 +0000 |
commit | 50ce0006a5d8a12297465643d3a052081e35178f (patch) | |
tree | c825a6d455fc754ee7066c32e9df391289cc368d /test/dialect/firebird.py | |
parent | 8cf05355bb15f2557318490a92e9d802c2fd42b6 (diff) | |
download | sqlalchemy-50ce0006a5d8a12297465643d3a052081e35178f.tar.gz |
Implemented FBDialect.server_version_info()
Diffstat (limited to 'test/dialect/firebird.py')
-rw-r--r-- | test/dialect/firebird.py | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/test/dialect/firebird.py b/test/dialect/firebird.py index f14422eb0..98f0e9e9a 100644 --- a/test/dialect/firebird.py +++ b/test/dialect/firebird.py @@ -73,14 +73,17 @@ class CompileTest(SQLCompileTest): self.assert_compile(select([func.max(t.c.col1)]), "SELECT max(sometable.col1) FROM sometable") -class StrLenTest(PersistTest): - # On FB the length() function is implemented by an external UDF, - # strlen(). Various SA tests fail because they pass a parameter - # to it, and that does not work (it always results the maximum - # string length the UDF was declared to accept). - # This test checks that at least it works ok in other cases. +class MiscFBTests(PersistTest): + __only_on__ = 'firebird' + def test_strlen(self): + # On FB the length() function is implemented by an external + # UDF, strlen(). Various SA tests fail because they pass a + # parameter to it, and that does not work (it always results + # the maximum string length the UDF was declared to accept). + # This test checks that at least it works ok in other cases. + meta = MetaData(testbase.db) t = Table('t1', meta, Column('id', Integer, Sequence('t1idseq'), primary_key=True), @@ -94,6 +97,9 @@ class StrLenTest(PersistTest): finally: meta.drop_all() + def test_server_version_info(self): + version = testbase.db.dialect.server_version_info(testbase.db.connect()) + assert len(version) == 3, "Got strange version info: %s" % repr(version) if __name__ == '__main__': testbase.main() |