2
0
forked from Wavyzz/dolibarr

Prepare compatibilty with mysql 8

This commit is contained in:
Laurent Destailleur
2020-07-24 12:47:29 +02:00
parent db9fc264d9
commit 6261fa191f

View File

@@ -156,7 +156,10 @@ class CodingSqlTest extends PHPUnit\Framework\TestCase
continue;
print 'Check sql file '.$file."\n";
$filecontent=file_get_contents($dir.'/'.$file);
$filecontent = file_get_contents($dir.'/'.$file);
// Allow ` for 'rank' column name
$filecontent = str_replace('`rank`', '_rank_', $filecontent);
$result=strpos($filecontent, '`');
print __METHOD__." Result for checking we don't have back quote = ".$result."\n";