From b8588ef4f76c9d0104bfc53b7af1f99386be4d4c Mon Sep 17 00:00:00 2001 From: Jason Kirtland Date: Fri, 3 Aug 2007 02:38:00 +0000 Subject: - Dialects can be queried for the server version (sqlite and mysql only with this commit) - Mark everything in a test suite as failed when setUpAll fails. - Added test coverage for Unicode table names in metadata.reflect() - @testing.exclude() filters out tests by server version - Applied exclude to the test suite, MySQL 4.1 passes again (no XA or SAVEPOINT) - Removed MySQL charset-setting pool hook- charset=utf8&use_unicode=0 works just as well. (Am I nuts? I'd swear this didn't work before.) - Finally migrated some old MySQL-tests into the dialect test module - Corrected 'commit' and 'rollback' logic (and comment) for ancient MySQL versions lacking transactions entirely - Deprecated the MySQL get_version_info in favor of server_version_info - Added a big hunk-o-doc for MySQL. --- lib/sqlalchemy/databases/sqlite.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/sqlalchemy/databases/sqlite.py') diff --git a/lib/sqlalchemy/databases/sqlite.py b/lib/sqlalchemy/databases/sqlite.py index d01793b9d..3f16c2b0d 100644 --- a/lib/sqlalchemy/databases/sqlite.py +++ b/lib/sqlalchemy/databases/sqlite.py @@ -187,6 +187,9 @@ class SQLiteDialect(ansisql.ANSIDialect): def schemadropper(self, *args, **kwargs): return SQLiteSchemaDropper(self, *args, **kwargs) + def server_version_info(self, connection): + return self.dbapi.sqlite_version_info + def supports_alter(self): return False -- cgit v1.2.1