|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-02-23 00:21 UTC] cjbj at hotmail dot com
[2006-03-27 15:53 UTC] wez@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Nov 04 22:00:01 2025 UTC |
Description: ------------ PDO OCI Binding Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production Apache 2.0 is not critical i hope, because even: oracle@tdk $> php pdo_test.php All bindning with more than one variable - behaves incorectly. I tried in many vays - the same result. I reproduce only one of them. Reproduce code: --------------- $dbh = new PDO("oci:", "tdk", "12345678"); $sql = "SELECT * FROM Region where region_id =:reg_id or region_id =:rg_id"; $stmt = $dbh->prepare($sql, array(PDO::CURSOR_SCROLL, PDO::CURSOR_FWDONLY)); $stmt->execute(array(':reg_id' => 2,':rg_id'=>1)); Expected result: ---------------- the result of the query SELECT * FROM Region where region_id =2 or region_id =1 Actual result: -------------- the result for the query SELECT * FROM Region where region_id =1