Home » Database » DB » Bug #7737
mysql(i) drivers quoteIdentifier() do not quote backticks
Details
| Submitted | 2006-05-28 08:24 UTC |
|---|---|
| From | pear at felixdd dot de |
| Assigned | danielc |
| Status | Closed |
| Package | DB |
| PHP Version | Irrelevant |
| Roadmaps | (Not assigned) |
Comments
[2006-05-28 08:24 UTC] pear at felixdd dot de
Description:
------------
quoteIdentifier() of both DB_mysqli and DB_mysql do not quote backticks in identifiers. Backticks in identifiers should quote by doubling the backtick.
See: http://dev.mysql.com/doc/refman/5.0/en/legal-names.html
[2006-06-09 20:48 UTC] pear at felixdd dot de
Yeah, and I am nuts. :-)
It's not the point whether to support backticks directly or to use such identifiers or not. I just want to fix the optional quoteIdentifier() function for those who want to use it.
However, thanks for the fix.