 |
|
|
| View previous topic :: View next topic |
| Author |
Message |
madhotra
Joined: 10 Mar 2008 Posts: 2
|
Posted: Fri May 23, 2008 1:42 pm Post subject: MDB2 fetchAll() not retriving all the records fom database |
|
|
Hi,
I'm trying to develop Web Service using PEAR::SOAP,
I got struck in an unusual problem !
when i'm using fetchAll() function, i'm just able to retrieve just 11 records from my DB,
if my DB have more than 11 records associated to that query, than it shows me Timed Out Error, in my browser.
My code is for the particular function is . . .
public function executeRetrieveAllQuery($strSQLQuery) {
$arrTransactionsData = array();
self::getDataBaseConnection();
$resultSet = self::$objMdb2->query($strSQLQuery);
if(PEAR::isError($resultSet)) {
$strErrorMsg = 'Query Execution Error : ' . $resultSet->getMessage(). $resultSet->getDebugInfo();
throw new PMS_CustomException($strErrorMsg,'PointsDB : executeRetrieveAllQuery()');
}
$intRows = $resultSet->numRows();
if ($intRows == 0) {
throw new PMS_CustomException('No rows returned','PointsDB : executeRetrieveAllQuery()');
} else {
$arrTransactionsData = $resultSet->fetchAll(MDB2_FETCHMODE_ASSOC);
}
$resultSet->free();
return $arrTransactionsData;
}
Plz help . . . |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|