|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-12-22 00:38 UTC] xing at mac dot com
[2005-12-28 17:05 UTC] xing at mac dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 01:00:01 2025 UTC |
Description: ------------ Using php 5.1CVS checked out around 19th 2005 and pdo + pdo_mysql packaged in that cvs checkout. Reproduce code: --------------- use mysql_pdo: $st = $db->prepare("select * from test where c = 2 AND (a = :a OR b = :a)"); $st->execute(array(":a" => 2)); Expected result: ---------------- Rows matching where a == 2 or b == 2. Actual result: -------------- 0 row result regardless of what's in the database. No error or exceptions from pdo.