]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
send a NASA probe to the buildbot
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 3 Jan 2009 17:28:43 +0000 (17:28 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 3 Jan 2009 17:28:43 +0000 (17:28 +0000)
lib/sqlalchemy/databases/sqlite.py

index 1d89d1147caf92b869c492bc7cf18052fe891951..83dfc60f0af30e402babcee0698b3f207e2acee6 100644 (file)
@@ -490,7 +490,10 @@ class SQLiteDialect(default.DefaultDialect):
 
             colargs = []
             if has_default:
-                colargs.append(DefaultClause(sql.text(default)))
+                try:
+                    colargs.append(DefaultClause(sql.text(default)))
+                except:
+                    colargs.append(DefaultClause(sql.text("what the heck is this: %r" % default)))
             table.append_column(schema.Column(name, coltype, primary_key = primary_key, nullable = nullable, *colargs))
 
         if not found_table: