Re: [SQLObject] Quoting reserved column names...
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Oleg B. <ph...@ph...> - 2009-06-22 14:20:41
|
On Thu, Jun 11, 2009 at 11:50:09AM +0300, Dan Pascu wrote: > On 11 Jun 2009, at 11:23, jonhattan wrote: > > Sam's Lists escribi?: > >> Is there a way to force SQLObject to quote it properly? > >> > > you can force the name of the column in the database this way: > > > > condition = StringCol(dbName='_condition') > > Or simply quote it and you do not need to change anything: > > condition = StringCol(dbName='`condition`') But you have to remember this may cause problems when SQLObject uses dbName to construct a complex name like sequence name (in Postgres). Oleg. -- Oleg Broytmann http://phd.pp.ru/ ph...@ph... Programmers don't die, they just GOSUB without RETURN. |