Re: [SQLObject] varchar vs varchar(100)
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Ian B. <ia...@co...> - 2005-02-10 17:46:44
|
Oleg Broytmann wrote: > BTW, will you commited the fix? I actually haven't been able to see the error yet. Maybe it's a PG 7.2 thing? I can't figure it out; if you can get the test to fail (test_auto) and then pass with this fix, I'd feel better that we were doing a sufficient test. > 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. -- Ian Bicking / ia...@co... / http://blog.ianbicking.org |