#34727 [NEW]: nextRowset doesn't work with mysql 5 and stored procedure
| From: | pointeau_sylvain at yahoo dot fr | Date: | Tue, 04 Oct 2005 11:27:32 +0000 |
| Subject: | #34727 [NEW]: nextRowset doesn't work with mysql 5 and stored procedure | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-85984@lists.php.net to get a copy of this message | ||
From: pointeau_sylvain at yahoo dot fr
Operating system: windows XP
PHP version: 5.1.0RC1
PHP Bug Type: PDO related
Bug description: nextRowset doesn't work with mysql 5 and stored procedure
Description:
------------
The second result set returned by the stored procedure is not displayed.
Reproduce code:
---------------
-- MYSQL 5
CREATE PROCEDURE
SPG_PERSONS()
BEGIN
SELECT * FROM TEST_PERSON;
SELECT 'second result';
END
-- PHP / PDO
$pdo = new PDO('mysql:host=localhost;dbname=test', '***', '***');
$stmt = $pdo->query('CALL SPG_PERSONS()');
do {
$rowset = $stmt->fetchAll();
foreach ($rowset as $row) {
echo $row[0];
echo '<br>';
}
}
while( $stmt->nextRowset() );
Expected result:
----------------
the results of both result set.
--
Edit bug report at http://bugs.php.net/?id=34727&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34727&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34727&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34727&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=34727&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=34727&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=34727&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=34727&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=34727&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=34727&r=support
Expected behavior: http://bugs.php.net/fix.php?id=34727&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=34727&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=34727&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=34727&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34727&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=34727&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=34727&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=34727&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=34727&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=34727&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=34727&r=mysqlcfg