On Tue, Apr 20, 2010 at 09:00:11PM +0300, Imri Goldberg wrote:
> When I checked it, it seemed to me to happen because the 'size' and
> 'precision' were pop()-ed from the original **kw dict passed to DecimalCol.
The problem was that the dictionary was simply empty.
SQLiteConnection.guessClass() did at line 364:
elif t.find('DECIMAL') >= 0:
return col.DecimalCol, {}
I changed that to
return col.DecimalCol, {'size': None, 'precision': None}
With the change your test works for me.
BTW, DecimalCol is only recognized by SQLiteConnection.
Oleg.
--
Oleg Broytman http://phd.pp.ru/ [email protected]
Programmers don't die, they just GOSUB without RETURN.
------------------------------------------------------------------------------
_______________________________________________
sqlobject-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss