mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-06 00:53:00 +01:00
Qual: Better compatibility with other databases
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user