On 22 Jun 2009, at 17:20, Oleg Broytmann wrote: > 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).
That quoting is only valid and necessary in mysql. IMO all this quoting of table and column names should be done internally by the specific database driver according to the specific database requirements. This manual quoting is just a workaround. -- Dan ------------------------------------------------------------------------------ _______________________________________________ sqlobject-discuss mailing list sqlobject-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss