diff --git a/htdocs/install/etape2.php b/htdocs/install/etape2.php index f0775cb2902..c0caa20c7a7 100644 --- a/htdocs/install/etape2.php +++ b/htdocs/install/etape2.php @@ -116,6 +116,11 @@ if ($_POST["action"] == "set") $createfunctions=1; $createdata=1; + + // To say sql requests are escaped for mysql so we need to unescape them + $db->unescapeslashquot=1; + + /************************************************************************************** * * Chargement fichiers tables/*.sql (non *.key.sql) @@ -194,7 +199,7 @@ if ($_POST["action"] == "set") print "".$langs->trans("CreateTableAndPrimaryKey",$name); print "
\n".$langs->trans("Request").' '.$requestnb.' : '.$buffer; print "\n"; - print "".$langs->trans("Error")." ".$db->errno()." ".$db->error().""; + print "".$langs->trans("ErrorSQL")." ".$db->errno()." ".$db->error().""; $error++; } } @@ -336,7 +341,7 @@ if ($_POST["action"] == "set") print "".$langs->trans("CreateOtherKeysForTable",$name); print "
\n".$langs->trans("Request").' '.$requestnb.' : '.$db->lastqueryerror(); print "\n"; - print "".$langs->trans("Error")." ".$db->errno()." ".$db->error().""; + print "".$langs->trans("ErrorSQL")." ".$db->errno()." ".$db->error().""; $error++; } } @@ -420,7 +425,12 @@ if ($_POST["action"] == "set") else { $ok = 0; - print $langs->trans("ErrorSQL")." : ".$db->errno()." - '".$buffer."'
\n"; + + print "".$langs->trans("FunctionsCreation"); + print "
\n".$langs->trans("Request").' '.$requestnb.' : '.$buffer; + print "\n"; + print "".$langs->trans("ErrorSQL")." ".$db->errno()." ".$db->error().""; + $error++; } } }