Re: [SQLObject] help with circular foreign keys?
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Oleg B. <ph...@ph...> - 2009-05-12 19:03:44
|
On Tue, May 12, 2009 at 02:57:38PM -0400, inhahe wrote: > On Tue, May 12, 2009 at 4:00 AM, Oleg Broytmann <ph...@ph...> wrote: > > On Tue, May 12, 2009 at 03:08:16AM -0400, inhahe wrote: > > > try: > > > Pics.createTable() > > > print "Created table Pics" > > > except dberrors.OperationalError: pass > > > > Why do you need these try/except? > > i want it to create each table but only if the table doesn't already exist Pics.createTable(ifNotExists=True) Oleg. -- Oleg Broytmann http://phd.pp.ru/ ph...@ph... Programmers don't die, they just GOSUB without RETURN. |