[Zope] dtml-sqltest and capital column names

Oliver Bleutgen Oliver Bleutgen <myzope@gmx.net>
Fri, 13 Oct 2000 16:51:16 +0200


Talking to myself ....
A slight correction to my patch so that
tablename.columname will be rendered as
to "tablename"."columnname".


146c146
< from string import find, split, join, atoi, atof
---
> from string import find, split, join, atoi, atof, replace
165,166c165,166
<         if has_key('column'): self.column=args['column']
<         else: self.column=self.__name__
---
>         if has_key('column'): self.column='"'+replace(args['column'], '.', '"."')+'"'
>         else: self.column='"'+replace(self.__name__, '.', '"."')+'"'


It would be nice if someone could comment whether this makes sense
for other dbs too.

cheers,
oliver