summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/engine/base.py
diff options
context:
space:
mode:
authorJason Kirtland <jek@discorporate.us>2007-08-03 02:38:00 +0000
committerJason Kirtland <jek@discorporate.us>2007-08-03 02:38:00 +0000
commitb8588ef4f76c9d0104bfc53b7af1f99386be4d4c (patch)
tree1d887aa7c677d45ac2d9ddd143f47f119cbf5af3 /lib/sqlalchemy/engine/base.py
parent90b2a57056f06dc14652517e331cb2609479dbc8 (diff)
downloadsqlalchemy-b8588ef4f76c9d0104bfc53b7af1f99386be4d4c.tar.gz
- 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.
Diffstat (limited to 'lib/sqlalchemy/engine/base.py')
-rw-r--r--lib/sqlalchemy/engine/base.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/sqlalchemy/engine/base.py b/lib/sqlalchemy/engine/base.py
index ff2da1165..4e4edaced 100644
--- a/lib/sqlalchemy/engine/base.py
+++ b/lib/sqlalchemy/engine/base.py
@@ -148,6 +148,11 @@ class Dialect(object):
raise NotImplementedError()
+ def server_version_info(self, connection):
+ """Return a tuple of the database's version number."""
+
+ raise NotImplementedError()
+
def reflecttable(self, connection, table, include_columns=None):
"""Load table description from the database.