#42076 [NEW]: RETURN PARAMETERS OF STORE PROCEDURE

From: Date: Mon, 23 Jul 2007 07:26:06 +0000
Subject: #42076 [NEW]: RETURN PARAMETERS OF STORE PROCEDURE
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-115330@lists.php.net to get a copy of this message
From: ydiazc at gmail dot com Operating system: WINDOW XP PHP version: 5.2.3 PHP Bug Type: PDO related Bug description: RETURN PARAMETERS OF STORE PROCEDURE 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) -- Edit bug report at http://bugs.php.net/?id=42076&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=42076&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=42076&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=42076&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=42076&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=42076&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=42076&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=42076&r=needscript Try newer version: http://bugs.php.net/fix.php?id=42076&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=42076&r=support Expected behavior: http://bugs.php.net/fix.php?id=42076&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=42076&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=42076&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=42076&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42076&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=42076&r=dst IIS Stability: http://bugs.php.net/fix.php?id=42076&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=42076&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=42076&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=42076&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=42076&r=mysqlcfg

« previous php.bugs (#115330) next »