|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #65757 Please implement quote_identifier() method as done in Perl's DBI.
Submitted: 2013-09-25 07:22 UTC Modified: 2013-09-25 22:12 UTC
From: cmanley at xs4all dot nl Assigned:
Status: Duplicate Package: PDO related
PHP Version: 5.4.20 OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
38 + 44 = ?
Subscribe to this entry?

 [2013-09-25 07:22 UTC] cmanley at xs4all dot nl
From manual page:

Besides the quote() method, a quote_identifier() method would be very helpful for quoting table and field names. This method exists in Perl's DBI:

Basically emulate this MySQL specific method for each driver:

public function quote_identifier($value) {
    return '`' . str_replace('`', '``', $value) . '`';


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2013-09-25 22:12 UTC]
-Status: Open +Status: Duplicate
 [2013-09-25 22:12 UTC]
Duplicate of request #38196.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 24 19:01:29 2024 UTC