18 Feb
2008
18 Feb
'08
6:34 p.m.
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.