Fix sql_type on field.Selection

This commit is contained in:
Bertrand Chenal committed 2008-07-28 22:53:53 +02:00
1 parent 5626704893
commit b5a8f5b407
1 file changed
+4 -1
+4 -1
View File
@@ -298,7 +298,10 @@ class Selection(Column):
Column.__init__(self, string=string, selection=selections, **args)
def sql_type(self):
return ('varchar', 'varchar')
if self.size:
return ('varchar', 'varchar(%d)' % (self.size,))
else:
return ('varchar', 'varchar')
selection = Selection