diff --git a/htdocs/install/etape2.php b/htdocs/install/etape2.php index 885e8ec4290..6e412d1ae66 100644 --- a/htdocs/install/etape2.php +++ b/htdocs/install/etape2.php @@ -154,7 +154,17 @@ if ($_POST["action"] == "set") $buffer=utf8_encode ($buffer); } - dolibarr_install_syslog("Request: ".$buffer,LOG_DEBUG); + if ($choix == 1) // If database is Mysql + { + 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)) { // print "