|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-08-01 13:05 UTC] aballard at gmail dot com
[2009-04-25 14:46 UTC] jani@php.net
[2009-05-03 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 30 04:00:01 2025 UTC |
Description: ------------ On the stores procedures not returned parameter of output or input output with php pdo and driver ODBC in both cases (sql server and oracle), is idem for both databases PDO('odbc:Driver={Microsoft ODBC for Oracle}... PDO('odbc:Driver={SQL Native Client}... the parameters of input or input output, They enter without problems to store procedure, But they do not go out with value MODIFY of procedure. help me !!!, I need to use multiple engines. Thank you for his help Reproduce code: --------------- CREATE PROCEDURE "BDSALUD"."PARAM" (Nombre IN OUT VARCHAR2) IS BEGIN INSERT INTO REGISTRY name,value)VALUES (Nombre,777); Nombre:='RONI'; END; $stmt = $db->prepare("CALL PARAM(:Nombre)"); $Nombre = 'hello'; $stmt->bindParam(':Nombre', $Nombre, PDO::PARAM_STR|PDO::PARAM_INPUT_OUTPUT, 4000); $resultado= $stmt->execute(); echo "<p>resultado: ".$resultado; echo "<p>Nombre: ".$Nombre; Expected result: ---------------- resultado: 1 Nombre: RONI Actual result: -------------- resultado: 1 Nombre: hello (THE INSERT WAS DONE, BUT NOT MODIFIED $Nombre)