Added investigation means: DB dump from the ITopConsultant page, this feature should not rely on mySQL statements that are not allowed in the OVH hosting setup. The feature is 100% new and does not interfere with any existing code. Therefore I would advise to upgrade the official build as quickly as possible.

SVN:trunk[190]
This commit is contained in:
Romain Quetiez
2009-10-02 15:07:28 +00:00
parent 3b099ddb3a
commit d71df57c66
3 changed files with 97 additions and 0 deletions

View File

@@ -410,6 +410,24 @@ class CMDBSource
return self::$m_aTablesInfo[strtolower($sTable)];
//return null;
}
public static function DumpTable($sTable)
{
$sSql = "SELECT * FROM `$sTable`";
$result = mysql_query($sSql, self::$m_resDBLink);
if (!$result)
{
throw new MySQLException('Failed to issue SQL query', array('query' => $sSql));
}
$aRows = array();
while ($aRow = mysql_fetch_array($result, MYSQL_ASSOC))
{
$aRows[] = $aRow;
}
mysql_free_result($result);
return $aRows;
}
}