Doc #69894 [NEW]: PDO stored procedure out parameters don't work

From: Date: Sun, 21 Jun 2015 05:55:59 +0000
Subject: Doc #69894 [NEW]: PDO stored procedure out parameters don't work
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-12456@lists.php.net to get a copy of this message
From:             ezequielcicala at hotmail dot com
Operating system: Windows 7
PHP version:      5.6.10
Package:          PDO Core
Bug Type:         Documentation Problem
Bug description:PDO stored procedure out parameters don't work

Description:
------------
---
From manual page: http://www.php.net/pdo.prepared-statements
---

As per the current implementation, out parameters won't work. Trying to
execute the code in examples 4 and 5 will throw the error:

"SQLSTATE[42000]: Syntax error or access violation: 1414 OUT or INOUT
argument 3 for routine test_table.baz is not a variable or NEW
pseudo-variable in BEFORE trigger".

Even when setting the attribute PDO::ATTR_EMULATE_PREPARES to 0, the
bound variables won't be updated with the out parameters.
This issue has been reported and explained here:
https://bugs.mysql.com/bug.php?id=69206 and
here:
https://bugs.php.net/bug.php?id=64640.

Expected result:
----------------
Execution of the stored procedure.

Actual result:
--------------
SQLSTATE[42000]: Syntax error or access violation: 1414 OUT or INOUT
argument 3 for routine test_table.baz is not a variable or NEW
pseudo-variable in BEFORE trigger

-- 
Edit bug report at https://bugs.php.net/bug.php?id=69894&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=69894&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=69894&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=69894&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=69894&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=69894&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=69894&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=69894&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=69894&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=69894&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=69894&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=69894&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=69894&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=69894&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=69894&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=69894&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=69894&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=69894&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=69894&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=69894&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=69894&r=mysqlcfg



Thread (2 messages)

« previous php.doc.bugs (#12456) next »