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/sybase.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/sqlalchemy/databases/sybase.py') diff --git a/lib/sqlalchemy/databases/sybase.py b/lib/sqlalchemy/databases/sybase.py index f7c3d8a0f..bf2b6b7d6 100644 --- a/lib/sqlalchemy/databases/sybase.py +++ b/lib/sqlalchemy/databases/sybase.py @@ -22,7 +22,7 @@ Known issues / TODO: * Tested on 'Adaptive Server Anywhere 9' (version 9.0.1.1751) """ -import datetime, random, warnings, operator +import datetime, operator, random from sqlalchemy import util, sql, schema, exceptions from sqlalchemy.sql import compiler, expression @@ -593,7 +593,8 @@ class SybaseSQLDialect(default.DefaultDialect): coltype = SybaseText() else: if coltype is None: - warnings.warn(RuntimeWarning("Did not recognize type '%s' of column '%s'" % (type, name))) + util.warn("Did not recognize type '%s' of column '%s'" % + (type, name)) coltype = sqltypes.NULLTYPE coltype = coltype(*args) colargs= [] -- cgit v1.2.1