ID: 48073
Updated by: [email protected]
Reported By: admin at wdfa dot co dot uk
-Status: Open
+Status: Bogus
Bug Type: Feature/Change Request
Operating System: na
PHP Version: 5.2.9
New Comment:
This is not possible with prepared statements, as the database server
won't be able to create the query plan without knowing the field names.
Previous Comments:
------------------------------------------------------------------------
[2009-04-25 00:46:15] admin at wdfa dot co dot uk
Description:
------------
Hi,
Would it be possible to allow pdo->bindParam / pdo->bindValue to bind
to column names.
i.e.
<?php
$sql="UPDATE `table` SET :name='test'";
$stm=$db->prepare($sql);
$stm->bindParam(":name","column",PDO::PARAM_STR);
$stm->execute();
?>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=48073&edit=1