summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2011-01-12 17:17:33 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2011-01-12 17:17:33 -0500
commitaf3bfefc622031786a4f9d9befd8b1d1da8a8922 (patch)
tree507a604e963d07f9891ab1abd567cf94a98f74ad /lib/sqlalchemy
parent0f31f36fe59aa2053271df459fbc3092a0ce599c (diff)
downloadsqlalchemy-af3bfefc622031786a4f9d9befd8b1d1da8a8922.tar.gz
- fix reflection of unknown types with arguments, NullType() accepts no arguments.
Diffstat (limited to 'lib/sqlalchemy')
-rw-r--r--lib/sqlalchemy/dialects/sqlite/base.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/sqlalchemy/dialects/sqlite/base.py b/lib/sqlalchemy/dialects/sqlite/base.py
index ac0fde846..2fadda68c 100644
--- a/lib/sqlalchemy/dialects/sqlite/base.py
+++ b/lib/sqlalchemy/dialects/sqlite/base.py
@@ -525,13 +525,13 @@ class SQLiteDialect(default.DefaultDialect):
args = ''
try:
coltype = self.ischema_names[coltype]
+ if args is not None:
+ args = re.findall(r'(\d+)', args)
+ coltype = coltype(*[int(a) for a in args])
except KeyError:
util.warn("Did not recognize type '%s' of column '%s'" %
(coltype, name))
- coltype = sqltypes.NullType
- if args is not None:
- args = re.findall(r'(\d+)', args)
- coltype = coltype(*[int(a) for a in args])
+ coltype = sqltypes.NullType()
columns.append({
'name' : name,