[development] Any solution for solving DB reserved word conflict?

Ivan Sergio Borgonovo mail at webthatworks.it
Mon Feb 18 18:30:42 UTC 2008


On Mon, 18 Feb 2008 18:52:29 +0100
Konstantin Käfer <kkaefer at gmail.com> wrote:

> > [] has the advantage of being easily translatable to ``, whereas
> > for the other
> > way round you'd need to parse the string in order to find out
> > which one is
> > the opening character and which one is the closing one.
> 
> No. Since identifiers don't really contain whitespace, it's just s/ 
> `([^`\s]+)`/[$1]/. You can add an additional whitespace to be
> matched before and after the backticks, but they are not necessary
> when the backticks are used correctly.

I wouldn't bet on this but I think MS SQL can have such beasts as
"my table". Or did I get it wrong?
Furthermore I'd prefer readability over MySQL friendliness at this
level.

-- 
Ivan Sergio Borgonovo
http://www.webthatworks.it



More information about the development mailing list