From:             bergheim at stud dot ntnu dot no
Operating system: Linux Debian
PHP version:      5.2.0
PHP Bug Type:     PDO related
Bug description:  nextRowset() doesn't work

Description:
------------
Using:
* PHP 5.2.0-8
* PDO MySQL 5.0.32
* MySQL 5.0.32

Only one rowset show up using nextRowset() in PDO.

Reproduce code:
---------------
[SQL]
DELIMITER $$

DROP PROCEDURE IF EXISTS `multiple_rowsets` $$
CREATE PROCEDURE `testing` ()
BEGIN
  SELECT "apple" AS `fruit`;
  SELECT "banana" AS `fruit`;
END $$

DELIMITER ;
[/SQL]

[PHP]
Use code from
http://www.php.net/manual/en/function.pdostatement-nextrowset.php 
[/PHP] 

Expected result:
----------------
The code show two generating tho resultsets at the page. See code in
manual.

Actual result:
--------------
Only the first rowset show up.

-- 
Edit bug report at http://bugs.php.net/?id=40246&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=40246&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=40246&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=40246&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=40246&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=40246&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=40246&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=40246&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=40246&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=40246&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=40246&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=40246&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=40246&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=40246&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=40246&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=40246&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=40246&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=40246&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=40246&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=40246&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=40246&r=mysqlcfg

Reply via email to