From: Mike Bayer Date: Fri, 13 Jan 2006 01:43:23 +0000 (+0000) Subject: column arguments converted to integer X-Git-Tag: rel_0_1_0~133 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=113f647cc611bc78771c86ac6446af12e49014b1;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git column arguments converted to integer --- diff --git a/lib/sqlalchemy/databases/sqlite.py b/lib/sqlalchemy/databases/sqlite.py index 49630b9ed3..9ada952ca0 100644 --- a/lib/sqlalchemy/databases/sqlite.py +++ b/lib/sqlalchemy/databases/sqlite.py @@ -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: