|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-06-10 02:25 UTC] wez@php.net
[2005-10-23 09:27 UTC] mike@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 10:00:01 2025 UTC |
Description: ------------ Prepared statements with ? doesn't work with the OCI driver. Reproduce code: --------------- <?php $DB = new pdo("oci:dbname=DATABASE", "user", "password"); $stmt = $DB->prepare('INSERT INTO test VALUES(?, ?, ?)'); $stmt->execute(array("1", "2", "3")); var_dump($stmt->errorInfo()); ?> Actual result: -------------- array(3) { [0]=> string(5) "HY000" [1]=> int(1036) [2]=> string(108) "OCIBindByPos: ORA-01036: illegal variable name/number (/mnt/data5/PHP/head/ext/pdo_oci/oci_statement.c:260)" }