StringCol ignores the sqlType argument because it gets
overridden by its own type-selection logic.
This patch makes StringCol always use the sqlType if
Logged In: YES
Hm, the patch didn't seem to stick. Anyway, here it is - it
should be fairly obvious even after whitespace mangling:
diff -puN sqlobject/col.py~stringcol-sqltype sqlobject/col.py
2004-07-07 11:46:25.927588481 -0700
+++ SQLObject-jeremy/sqlobject/col.py 2004-07-07
@@ -297,7 +297,9 @@ class SOStringCol(SOCol):
- if not self.length:
+ if self.customSQLType is not None:
+ return self.customSQLType
+ elif not self.length:
return 'VARCHAR(%i)' % self.length
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.