On Feb 13, 2007, at 8:02 PM, Paul McNett wrote:
> I agree. I believe we can already handle this, though. Just change
> your
> biz.addField() calls to quote the field using whatever quote character
> the backend uses (backtick for MySQL). Ed, is there a way to specify
> that the field gets quoted explicitly, or will it only work for spaces
> in the field name?
The code reads:
def encloseSpaces(self, exp):
"""When table/field names contain spaces, this will safely enclose them
in quotes or whatever delimiter is appropriate for the backend.
"""
ret = exp
if " " in exp:
delim = self.spaceEnclosureChar
if not ret.startswith(delim):
ret = "%(delim)s%(ret)s" % locals()
if not ret.endswith(delim):
ret = "%(ret)s%(delim)s" % locals()
return ret
So yes, it could easily be changed to eliminate the reference to
spaces, and simply quote everything. Is this what we want to do?
-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users