[development] Any solution for solving DB reserved word conflict?
Jakob Petsovits
jpetso at gmx.at
Mon Feb 18 17:34:27 UTC 2008
On Monday, 18. February 2008, Konstantin Käfer wrote:
> > First of all, quota all potential reserved word with [ ] (since it
> > is a pair up token, easy for regex), and further more replace it as
> > DB specific delimited identifiers within each driver implementation.
>
> If we go that route, I suggest using `` over []. As you said,
> backticks are the MySQL quotes and since 90% of all Drupal sites use
> MySQL it seems straightforward to use that method.
[] 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.
More information about the development
mailing list