Req #52708 [Opn->Dup]: New PDO::quoteIdentifier($name) method

From: Date: Fri, 27 Aug 2010 04:01:07 +0000
Subject: Req #52708 [Opn->Dup]: New PDO::quoteIdentifier($name) method
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-153838@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=52708&edit=1 ID: 52708 Updated by: aharvey@php.net Reported by: ch@php.net Summary: New PDO::quoteIdentifier($name) method -Status: Open +Status: Duplicate Type: Feature/Change Request Package: PDO related PHP Version: 5.3.3 Block user comment: N New Comment: Dupe of request #38196. Previous Comments: ------------------------------------------------------------------------ [2010-08-26 17:15:51] ch@php.net Description: ------------ Sometimes it would be very useful to have a PDO::quoteIdentifier($name) method for the same reasons there already is a PDO::quote($name) method i.e. because the quoting characters might be different among database engines and to prevent SQL-Injection-Attacks. Implementing it shouldn't be hard as the lower level DB engines provide a corresponding function or if not, the ANSI SQL quoting character could be used as fall-back. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=52708&edit=1

« previous php.bugs (#153838) next »