From f339ae76d99ab67257250b51611406f0bb5a6332 Mon Sep 17 00:00:00 2001
From: Laurent Destailleur <eldy@users.sourceforge.net>
Date: Fri, 5 Sep 2008 23:10:50 +0000
Subject: [PATCH] Install process use Mysql files whatever is database handler
 choosed.

---
 htdocs/install/etape2.php | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

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 "<td>OK requete ==== $buffer</td></tr>";
-- 
GitLab