Edit report at https://bugs.php.net/bug.php?id=63631&edit=1
ID: 63631 Updated by: m...@php.net Reported by: mamatkazin at spb dot orw dot ru Summary: PDO_PGSQL: bindParam and bindValue not working -Status: Open +Status: Feedback Type: Bug Package: PDO related Operating System: linux PHP Version: 5.4.9 Block user comment: N Private report: N New Comment: Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to "Open". Thank you for your interest in PHP. Previous Comments: ------------------------------------------------------------------------ [2012-11-28 07:31:41] mamatkazin at spb dot orw dot ru Description: ------------ OS Linux, PHP 5.4.8 and 5.4.9, PostgreSQL 9.2.1, Probably, bindParam and bindValue not working. Code: $stmt=$dbh->prepare(âquery_with_param_?â); $stmt->bindParam(1, $param, PDO::PARAM_STR); // or bindValue $stmt->execute(); $result=$stmt->fetchAll(PDO::FETCH_NUM|PDO::FETCH_COLUMN); Expected result: $result - is not empty; Actual result: $result - empty Test script: --------------- $stmt=$dbh->prepare(âquery_with_param_?â); $stmt->bindParam(1, $param, PDO::PARAM_STR); // or bindValue $stmt->execute(); $result=$stmt->fetchAll(PDO::FETCH_NUM|PDO::FETCH_COLUMN); Expected result: ---------------- $result - is not empty; Actual result: -------------- $result - empty ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=63631&edit=1