diff options
author | Jason Kirtland <jek@discorporate.us> | 2008-01-11 01:28:43 +0000 |
---|---|---|
committer | Jason Kirtland <jek@discorporate.us> | 2008-01-11 01:28:43 +0000 |
commit | 8dd825b413276025b0f27d2ed7e5b93ba81a5b9c (patch) | |
tree | 4a13aec5f61d1a934a3b4a527e9bdaf7f5cfc9ce /lib/sqlalchemy/databases/firebird.py | |
parent | 3e9df22546cb4c7af0ece290f4f57a377516f142 (diff) | |
download | sqlalchemy-8dd825b413276025b0f27d2ed7e5b93ba81a5b9c.tar.gz |
- Warnings are now issued as SAWarning instead of RuntimeWarning; util.warn() wraps this up.
- SADeprecationWarning has moved to exceptions. An alias remains in logging until 0.5.
Diffstat (limited to 'lib/sqlalchemy/databases/firebird.py')
-rw-r--r-- | lib/sqlalchemy/databases/firebird.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sqlalchemy/databases/firebird.py b/lib/sqlalchemy/databases/firebird.py index e16593eb8..c83a44e01 100644 --- a/lib/sqlalchemy/databases/firebird.py +++ b/lib/sqlalchemy/databases/firebird.py @@ -88,7 +88,6 @@ connections are active, the following setting may alleviate the problem:: import datetime -import warnings from sqlalchemy import exceptions, schema, types as sqltypes, sql, util from sqlalchemy.engine import base, default @@ -461,7 +460,8 @@ class FBDialect(default.DefaultDialect): # get the data types and lengths coltype = ischema_names.get(row['ftype'].rstrip()) if coltype is None: - warnings.warn(RuntimeWarning("Did not recognize type '%s' of column '%s'" % (str(row['ftype']), name))) + util.warn("Did not recognize type '%s' of column '%s'" % + (str(row['ftype']), name)) coltype = sqltypes.NULLTYPE else: coltype = coltype(row) |