formatting
This commit is contained in:
1 parent
f602b49a5b
commit
cf88b4d075
9 files changed
+40
-39
No files matched your search
@@ -37,7 +37,7 @@ class SelectSQLRewriter extends AbstractSQLRewriter
|
||||
if(false !== strpos($sql, 'information_schema')) {
|
||||
// WP Site Health rewrites
|
||||
if (false !== strpos($sql, "SELECT TABLE_NAME AS 'table', TABLE_ROWS AS 'rows', SUM(data_length + index_length)")) {
|
||||
$sql = $this->postgresTableSizeRewrite();
|
||||
$sql = $this->postgresTableSizeRewrite();
|
||||
return $sql;
|
||||
}
|
||||
|
||||
@@ -360,7 +360,7 @@ class SelectSQLRewriter extends AbstractSQLRewriter
|
||||
}
|
||||
|
||||
// This method is specifically to handle should_suggest_persistent_object_cache in wp site health
|
||||
protected function postgresTableSizeRewrite($schema = 'public')
|
||||
protected function postgresTableSizeRewrite($schema = 'public')
|
||||
{
|
||||
|
||||
$sql = <<<SQL
|
||||
|
||||
Reference in new issue
Block a user