Bug #67295 [NEW]: PHP access to MySQL Stored Procedure with cursors makes incomplete table update

From: Date: Fri, 16 May 2014 21:01:48 +0000
Subject: Bug #67295 [NEW]: PHP access to MySQL Stored Procedure with cursors makes incomplete table update
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-185842@lists.php.net to get a copy of this message
From:             wsekim at yahoo dot com
Operating system: Windows 7 Pro SP1
PHP version:      5.4.28
Package:          MySQLi related
Bug Type:         Bug
Bug description:PHP access to MySQL Stored Procedure with cursors makes incomplete table update

Description:
------------
A call with MySQLi triggers incomplete updates to a datatable when
running a cursor-fetch loop in a stored procedure.

The bug did not occur when testing the stored procedure in the MySQL
Workbench, but arose when calling the procedure through PHP MySQLi
functions.

I am using an older version of PHP but the problem occurred on a new
download of the Windows TS PHP 5.4.28 with php.ini modified only to
support MySQLi access using CLI.

A test with a simpler cursor-fetch procedure, calling another stored
procedure in the loop, appeared to work fine.

Test script:
---------------
http://mikeswhitney.com/BugReportPHPMySQLMay2014.txt

Expected result:
----------------
  Add 5 entries, into tbl_order_image, with image_source_path filled in
with sequential values.


Actual result:
--------------
 Adds 3 entries, into tbl_order_image, with correct sequential values
for the first two entries. However, a null value appears in the
image_source_path of the 3rd entry



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



Thread (4 messages)

« previous php.bugs (#185842) next »