]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
column arguments converted to integer
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 13 Jan 2006 01:43:23 +0000 (01:43 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 13 Jan 2006 01:43:23 +0000 (01:43 +0000)
lib/sqlalchemy/databases/sqlite.py

index 49630b9ed3b1034d4a45bfc41670db43f9c9e22c..9ada952ca054c102afbcea35c440f1710464502b 100644 (file)
@@ -140,7 +140,7 @@ class SQLiteSQLEngine(ansisql.ANSISQLEngine):
             if args is not None:
                 args = re.findall(r'(\d+)', args)
                 #print "args! " +repr(args)
-                coltype = coltype(*args)
+                coltype = coltype(*[int(a) for a in args])
             table.append_item(schema.Column(name, coltype, primary_key = primary_key, nullable = nullable))
         c = self.execute("PRAGMA foreign_key_list(" + table.name + ")", {})
         while True: