Merge pull request #20224 from liviuconcioiu/export_tables
Skip tables that cannot be read
This commit is contained in:
commit
d5a008a25a
@ -841,6 +841,11 @@ class Export
|
||||
$tableObj = new Table($table, $db);
|
||||
$nonGeneratedCols = $tableObj->getNonGeneratedColumns(true);
|
||||
|
||||
// Skip tables that cannot be read
|
||||
if ($nonGeneratedCols === []) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$localQuery = 'SELECT ' . implode(', ', $nonGeneratedCols)
|
||||
. ' FROM ' . Util::backquote($db)
|
||||
. '.' . Util::backquote($table);
|
||||
@ -1110,6 +1115,11 @@ class Export
|
||||
$tableObj = new Table($table, $db);
|
||||
$nonGeneratedCols = $tableObj->getNonGeneratedColumns(true);
|
||||
|
||||
// Skip tables that cannot be read
|
||||
if ($nonGeneratedCols === []) {
|
||||
return;
|
||||
}
|
||||
|
||||
$localQuery = 'SELECT ' . implode(', ', $nonGeneratedCols)
|
||||
. ' FROM ' . Util::backquote($db)
|
||||
. '.' . Util::backquote($table) . $addQuery;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user