Author: phd
Date: 2007-08-21 02:15:08 -0600 (Tue, 21 Aug 2007)
New Revision: 2882
Modified:
SQLObject/branches/0.9/docs/News.txt
SQLObject/branches/0.9/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.9/docs/News.txt
===================================================================
--- SQLObject/branches/0.9/docs/News.txt 2007-08-21 08:14:43 UTC (rev 2881)
+++ SQLObject/branches/0.9/docs/News.txt 2007-08-21 08:15:08 UTC (rev 2882)
@@ -7,6 +7,9 @@
.. _start:
+SQLObject 0.9.2
+===============
+
SQLObject 0.9.1
===============
@@ -76,6 +79,11 @@
* idName can be inherited from the parent sqlmeta class.
+SQLObject 0.8.6
+===============
+
+* A number of changes ported from `SQLObject 0.7.9`_.
+
SQLObject 0.8.5
===============
@@ -247,6 +255,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.9/sqlobject/col.py
===================================================================
--- SQLObject/branches/0.9/sqlobject/col.py 2007-08-21 08:14:43 UTC (rev 2881)
+++ SQLObject/branches/0.9/sqlobject/col.py 2007-08-21 08:15:08 UTC (rev 2882)
@@ -1396,6 +1396,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()
|