Skip to content
Snippets Groups Projects
Commit bf40f95d authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Install process use Mysql files whatever is database handler choosed.

parent 956f530a
No related branches found
No related tags found
No related merge requests found
...@@ -141,6 +141,11 @@ if ($_POST["action"] == "set") ...@@ -141,6 +141,11 @@ if ($_POST["action"] == "set")
$buf = fgets($fp, 4096); $buf = fgets($fp, 4096);
if (substr($buf, 0, 2) <> '--') if (substr($buf, 0, 2) <> '--')
{ {
if ($choix != 1) // All databases except Mysql
{
$buf=$db->convertSQLFromMysql($buf);
}
$buffer .= $buf; $buffer .= $buf;
} }
} }
...@@ -154,17 +159,7 @@ if ($_POST["action"] == "set") ...@@ -154,17 +159,7 @@ if ($_POST["action"] == "set")
$buffer=utf8_encode ($buffer); $buffer=utf8_encode ($buffer);
} }
if ($choix == 1) // If database is Mysql
{
dolibarr_install_syslog("Request: ".$buffer,LOG_DEBUG); dolibarr_install_syslog("Request: ".$buffer,LOG_DEBUG);
}
else // All databases except Mysql
{
dolibarr_install_syslog("Request (mysql syntax): ".$buffer,LOG_DEBUG);
$buffer=$db->convertSQLFromMysql($buffer);
dolibarr_install_syslog("Request (converted): ".$buffer,LOG_DEBUG);
}
if ($db->query($buffer)) if ($db->query($buffer))
{ {
// print "<td>OK requete ==== $buffer</td></tr>"; // print "<td>OK requete ==== $buffer</td></tr>";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment