Re: [SQLObject] Re: Postgres: DROP table CASCADE
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Oleg B. <ph...@ph...> - 2004-11-29 18:28:08
|
On Mon, Nov 29, 2004 at 12:03:03PM -0600, Ian Bicking wrote: > >PS. After fixing it I've got an amazing number of exceptions and > >failures during the test. It seems no one has ran the test suite for > >quite some time, at least on Postgres! > > I was just running it without problems. BTW, how have yoy ran it at all? $ python -O test.py -d postgres Traceback (most recent call last): File "test.py", line 1372, in ? setDatabaseType(db) File "/usr/local/src/SQL/SQLObject/tests/SQLObjectTest.py", line 174, in setDatabaseType raise KeyError, 'No connection by the type %s is known' % t KeyError: 'No connection by the type is known' Of course. if arg.startswith('-d'): dbs.append(arg[2:]) dbs is now [["postgres"]] instead of ["postgres"]. Oleg. -- Oleg Broytmann http://phd.pp.ru/ ph...@ph... Programmers don't die, they just GOSUB without RETURN. |