N°2010 Fix case for information_schema column names

In MySQL 8, we need to use same case as column declaration, or use an alias
This commit is contained in:
Pierre Goiffon
2019-02-05 17:09:44 +01:00
parent 94ed0354c2
commit 7034ffea39
3 changed files with 6 additions and 6 deletions

View File

@@ -534,7 +534,7 @@ class SetupUtils
// to do... evaluate how we can correlate the DB size with the size of the dump (and the zip!)
// E.g. 2,28 Mb after a full install, giving a zip of 26 Kb (data = 26 Kb)
// Example of query (DB without a suffix)
//$sDBSize = "SELECT SUM(ROUND(DATA_LENGTH/1024/1024, 2)) AS size_mb FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = `$sDBName`";
//$sDBSize = "SELECT SUM(ROUND(DATA_LENGTH/1024/1024, 2)) AS size_mb FROM information_schema.TABLES WHERE TABLE_SCHEMA = `$sDBName`";
return $aResult;
}