Merge pull request #20224 from liviuconcioiu/export_tables

Skip tables that cannot be read
This commit is contained in:
Maurício Meneghini Fauth 2026-04-02 16:12:46 -03:00 committed by GitHub
commit d5a008a25a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;