Author: phd
Date: 2007-08-21 02:14:43 -0600 (Tue, 21 Aug 2007)
New Revision: 2881
Modified:
SQLObject/branches/0.8/docs/News.txt
SQLObject/branches/0.8/sqlobject/col.py
Log:
Changed the default value for 'varchar' in BLOBColumns from 'auto' to False
(so that the default type for the columns in MySQL is BLOB, not TEXT).
Modified: SQLObject/branches/0.8/docs/News.txt
===================================================================
--- SQLObject/branches/0.8/docs/News.txt 2007-08-21 08:13:30 UTC (rev 2880)
+++ SQLObject/branches/0.8/docs/News.txt 2007-08-21 08:14:43 UTC (rev 2881)
@@ -7,6 +7,11 @@
.. _start:
+SQLObject 0.8.6
+===============
+
+* A number of changes ported from `SQLObject 0.7.9`_.
+
SQLObject 0.8.5
===============
@@ -178,6 +183,15 @@
* Fixed aggregators and accumulators with inheritance.
+SQLObject 0.7.9
+===============
+
+Other Changes
+-------------
+
+* Changed the default value for 'varchar' in BLOBColumns from 'auto' to False
+ (so that the default type for the columns in MySQL is BLOB, not TEXT).
+
SQLObject 0.7.8
===============
Modified: SQLObject/branches/0.8/sqlobject/col.py
===================================================================
--- SQLObject/branches/0.8/sqlobject/col.py 2007-08-21 08:13:30 UTC (rev 2880)
+++ SQLObject/branches/0.8/sqlobject/col.py 2007-08-21 08:14:43 UTC (rev 2881)
@@ -1294,6 +1294,11 @@
return binary
class SOBLOBCol(SOStringCol):
+ def __init__(self, **kw):
+ # Change the default from 'auto' to False - this is a (mostly) binary column
+ if 'varchar' not in kw: kw['varchar'] = False
+ super(SOBLOBCol, self).__init__(**kw)
+
def createValidators(self):
return [BinaryValidator(name=self.name)] + \
super(SOBLOBCol, self).createValidators()
|