Re: [SQLObject] varchar vs varchar(100)
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Oleg B. <ph...@ph...> - 2005-02-10 17:40:53
|
BTW, will you commited the fix? On Tue, Feb 08, 2005 at 04:53:03PM -0500, Ben Scherrey wrote: > Ok, here's a hack fix I threw in that works for both cases of VARCHAR > and VARCHAR(n): > pgconnection.py:197 > def guessClass(self, t): > if t.count('int'): > return col.IntCol, {} > elif t.count('varying'): > if '(' in t: > return col.StringCol, {'length': int(t[t.index('(')+1:-1])} > return col.StringCol, {} Oleg. -- Oleg Broytmann http://phd.pp.ru/ ph...@ph... Programmers don't die, they just GOSUB without RETURN. |