mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-06 01:28:19 +01:00
Optimisation performances migration
This commit is contained in:
@@ -685,8 +685,8 @@ class DoliDb
|
|||||||
if ($table) $like = "LIKE '".$table."'";
|
if ($table) $like = "LIKE '".$table."'";
|
||||||
$sql="SHOW TABLES FROM ".$database." ".$like.";";
|
$sql="SHOW TABLES FROM ".$database." ".$like.";";
|
||||||
//print $sql;
|
//print $sql;
|
||||||
$result = mysql_query($sql, $this->db);
|
$result = $this->query($sql);
|
||||||
while($row = mysql_fetch_array($result))
|
while($row = $this->fetch_row($result))
|
||||||
{
|
{
|
||||||
$listtables[] = $row[0];
|
$listtables[] = $row[0];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -689,8 +689,8 @@ class DoliDb
|
|||||||
if ($table) $like = "LIKE '".$table."'";
|
if ($table) $like = "LIKE '".$table."'";
|
||||||
$sql="SHOW TABLES FROM ".$database." ".$like.";";
|
$sql="SHOW TABLES FROM ".$database." ".$like.";";
|
||||||
//print $sql;
|
//print $sql;
|
||||||
$result = mysqli_query($this->db, $sql);
|
$result = $this->query($sql);
|
||||||
while($row = mysqli_fetch_array($result))
|
while($row = $this->fetch_row($result))
|
||||||
{
|
{
|
||||||
$listtables[] = $row[0];
|
$listtables[] = $row[0];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user