Author: phd
Date: 2007-10-09 09:43:41 -0600 (Tue, 09 Oct 2007)
New Revision: 3025
Modified:
SQLObject/branches/0.8/docs/News.txt
SQLObject/branches/0.8/sqlobject/col.py
Log:
Fixed StringCol and UnicodeCol: use sqlType with MSSQL.
Modified: SQLObject/branches/0.8/docs/News.txt
===================================================================
--- SQLObject/branches/0.8/docs/News.txt 2007-10-09 14:57:05 UTC (rev 3024)
+++ SQLObject/branches/0.8/docs/News.txt 2007-10-09 15:43:41 UTC (rev 3025)
@@ -199,6 +199,8 @@
* Fixed a bug in sqlbuilder._LikeQuoted() - call sqlrepr() on the
expression to escape single quotes if the expression is a string.
+* Fixed StringCol and UnicodeCol: use sqlType with MSSQL.
+
Other Changes
-------------
Modified: SQLObject/branches/0.8/sqlobject/col.py
===================================================================
--- SQLObject/branches/0.8/sqlobject/col.py 2007-10-09 14:57:05 UTC (rev 3024)
+++ SQLObject/branches/0.8/sqlobject/col.py 2007-10-09 15:43:41 UTC (rev 3025)
@@ -483,6 +483,8 @@
return type
def _mssqlType(self):
+ if self.customSQLType is not None:
+ return self.customSQLType
if not self.length:
type = 'varchar(4000)'
elif self.varchar:
|