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

Install process use Mysql files whatever is database handler choosed.

parent 73eb0de5
Branches
Tags
No related merge requests found
...@@ -154,7 +154,17 @@ if ($_POST["action"] == "set") ...@@ -154,7 +154,17 @@ 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