On Mon, Aug 20, 2007 at 01:44:11AM -0300, Leandro Lucarella wrote:
> why it is even the posibility to use a TEXT-like column with a BLOBCol in 
> MySQL?

   Why not, if MySQL allows it? This is the only column that supports
LONGTEXT.

> [1] col.py again:
> class SOStringLikeCol(SOCol):
>     """A common ancestor for SOStringCol and SOUnicodeCol"""
>     def __init__(self, **kw):
>         self.length = popKey(kw, 'length')
>         self.varchar = popKey(kw, 'varchar', 'auto')

   But look a few lines below:

        if not self.length:
            assert self.varchar == 'auto' or not self.varchar, \
                   "Without a length strings are treated as TEXT, not varchar"
            self.varchar = False
        elif self.varchar == 'auto':
            self.varchar = True

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

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
sqlobject-discuss mailing list
sqlobject-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to