Qual: Better compatibility with other databases

This commit is contained in:
Laurent Destailleur
2009-10-29 01:26:38 +00:00
parent 80a876886e
commit 0f4b911f54
5 changed files with 13 additions and 12 deletions

View File

@@ -244,7 +244,11 @@ class DoliDb
}
}
// Remove () in the tables in FROM
// Remove () in the tables in FROM if one table
$line=preg_replace('/FROM\s*\((([a-z_]+)\s+as\s+([a-z_]+)\s*)\)/i','FROM \\1',$line);
//print $line;
// Remove () in the tables in FROM if two table
//$line=preg_replace('/FROM\s*\((([a-z_]+)\s+as\s+([a-z_]+)\s*,\s*([a-z_]+)\s+as\s+([a-z_]+)\s*)\)/i','FROM \\1',$line);
//print $line;