Optimisation performances migration

This commit is contained in:
Laurent Destailleur
2007-06-14 22:49:55 +00:00
parent 01b5375249
commit c4dd850231
2 changed files with 4 additions and 4 deletions

View File

@@ -685,8 +685,8 @@ class DoliDb
if ($table) $like = "LIKE '".$table."'";
$sql="SHOW TABLES FROM ".$database." ".$like.";";
//print $sql;
$result = mysql_query($sql, $this->db);
while($row = mysql_fetch_array($result))
$result = $this->query($sql);
while($row = $this->fetch_row($result))
{
$listtables[] = $row[0];
}