PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » XML » XML_sql2xml » Bug #6978

Problem using a ResultSet

Details

Submitted2006-03-01 17:24 UTC
Fromu_colmenar at altran-tech dot net
StatusBogus
PackageXML_sql2xml
PHP Version5.1.1
OSWindowsXP
Roadmaps(Not assigned)

Comments

[2006-03-01 17:24 UTC] u_colmenar at altran-tech dot net

Description:
------------
I cannot get any result because the next line don't match!!

>> get_class($resultset) == "db_result"

It could be modified to:

get_class($resultset) == "DB_result"

Test script:
---------------
My script:
-----------------
$Db= &DB::connect($Dsn, true);
$ResultSet = $Db->query($Query);

$sql2xml = new xml_sql2xml($Db);
$XmlString = $sql2xml->getxml($ResultSet);
echo $XmlString

-----------------
sql2xml class:
-----------------

function add ($resultset, $params = Null)
{
...

// if array, then it's an array...
elseif (is_array($resultset)) {
$this->AddArray($resultset);
}

if (get_class($resultset) == "db_result") {
$this->AddResult($resultset);
}
}

Actual result:
--------------
Nothing!

[2006-03-01 17:25 UTC] u_colmenar at altran-tech dot net

--