Bug #69795 [NEW]: PDO_ODBC + Vertica query fails when using parameters

From: Date: Wed, 10 Jun 2015 20:09:43 +0000
Subject: Bug #69795 [NEW]: PDO_ODBC + Vertica query fails when using parameters
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-193316@lists.php.net to get a copy of this message
From: tob_filt at hotmail dot com Operating system: Linux Debian PHP version: 5.6.9 Package: PDO ODBC Bug Type: Bug Bug description:PDO_ODBC + Vertica query fails when using parameters Description: ------------ We're trying to use PDO to connect to a Vertica database and it works as long as we don't put parameters in our queries. For example, a simple query like this works no problem: $stmt = $conn->prepare("Select Name from clients where ClientNum = 123"); However, when I do it like this, I get a blank page: $stmt = $conn->prepare("Select Name from clients where ClientNum = :cl"); $stmt->bindValue(":cl", 123); Test script: --------------- $c = new PDO("odbc:Driver=Vertica;Server=X.X.X.X;Port=5433;Database=db;", "myUser", "myPassword"); $stmt = $c->prepare("SELECT ClientName FROM tblClients where ClientNum = :cl"); $stmt->bindValue(":cl", 123); $stmt->execute(); while($res = $stmt->fetch(PDO::FETCH_ASSOC)) { echo $res['ClientName'] . "<br>"; } Expected result: ---------------- I expect the name of the client to get displayed Actual result: -------------- A blank page -- Edit bug report at https://bugs.php.net/bug.php?id=69795&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=69795&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=69795&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=69795&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=69795&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=69795&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=69795&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=69795&r=needscript Try newer version: https://bugs.php.net/fix.php?id=69795&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=69795&r=support Expected behavior: https://bugs.php.net/fix.php?id=69795&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=69795&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=69795&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=69795&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=69795&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=69795&r=dst IIS Stability: https://bugs.php.net/fix.php?id=69795&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=69795&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=69795&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=69795&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=69795&r=mysqlcfg

« previous php.bugs (#193316) next »