php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #40246 nextRowset() doesn't work
Submitted: 2007-01-26 09:14 UTC Modified: 2007-02-03 01:00 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: bergheim at stud dot ntnu dot no Assigned:
Status: No Feedback Package: PDO related
PHP Version: 5.2.0 OS: Linux Debian
Private report: No CVE-ID: None
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
46 - 16 = ?
Subscribe to this entry?

 
 [2007-01-26 09:14 UTC] bergheim at stud dot ntnu dot no
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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-01-26 10:02 UTC] tony2001@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.2-win32-latest.zip


 [2007-02-03 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 31 23:01:28 2024 UTC