PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Database » DB » Bug #7737

mysql(i) drivers quoteIdentifier() do not quote backticks

Details

Submitted2006-05-28 08:24 UTC
Frompear at felixdd dot de
Assigneddanielc
StatusClosed
PackageDB
PHP VersionIrrelevant
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.