Oleg,

Thanks for the extremely quick reply!

I missed the varchar=False option. (I tried the length=2**16, but got a text field).

This worked.

Regards,

Sam



On 11/11/05, Oleg Broytmann <phd@mail2.phd.pp.ru> wrote:
On Fri, Nov 11, 2005 at 01:13:15PM -0600, Sam Williams wrote:
> Is it possible to define what size (i.e. MEDIUMBLOB) SQLObject creates for a
> BLOBCol (specifically for MySQL)?

   It is.

class Book(SQLObject):
   isbn = StringCol(length=13, alternateID=True)
   binvar = BLOBCol(length=2**16, varchar=False)

Oleg.
--
     Oleg Broytmann            http://phd.pp.ru/            phd@phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.