From 8dd825b413276025b0f27d2ed7e5b93ba81a5b9c Mon Sep 17 00:00:00 2001 From: Jason Kirtland Date: Fri, 11 Jan 2008 01:28:43 +0000 Subject: - 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. --- lib/sqlalchemy/databases/firebird.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/sqlalchemy/databases/firebird.py') 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) -- cgit v1.2.1