summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/databases/postgres.py
diff options
context:
space:
mode:
authorJason Kirtland <jek@discorporate.us>2008-01-11 01:28:43 +0000
committerJason Kirtland <jek@discorporate.us>2008-01-11 01:28:43 +0000
commit8dd825b413276025b0f27d2ed7e5b93ba81a5b9c (patch)
tree4a13aec5f61d1a934a3b4a527e9bdaf7f5cfc9ce /lib/sqlalchemy/databases/postgres.py
parent3e9df22546cb4c7af0ece290f4f57a377516f142 (diff)
downloadsqlalchemy-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/postgres.py')
-rw-r--r--lib/sqlalchemy/databases/postgres.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/sqlalchemy/databases/postgres.py b/lib/sqlalchemy/databases/postgres.py
index 623726980..19db8b6b7 100644
--- a/lib/sqlalchemy/databases/postgres.py
+++ b/lib/sqlalchemy/databases/postgres.py
@@ -19,7 +19,7 @@ parameter when creating the queries::
postgres_returning=[empl.c.id, empl.c.salary]).execute().fetchall()
"""
-import re, random, warnings, string
+import random, re, string
from sqlalchemy import sql, schema, exceptions, util
from sqlalchemy.engine import base, default
@@ -511,7 +511,8 @@ class PGDialect(default.DefaultDialect):
if is_array:
coltype = PGArray(coltype)
else:
- warnings.warn(RuntimeWarning("Did not recognize type '%s' of column '%s'" % (attype, name)))
+ util.warn("Did not recognize type '%s' of column '%s'" %
+ (attype, name))
coltype = sqltypes.NULLTYPE
colargs= []