Merge branch 'QA_5_2'
Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
This commit is contained in:
commit
342135b31b
@ -337,6 +337,11 @@ class Export
|
||||
$tableObj = new Table($table, $db->getName(), $this->dbi);
|
||||
$nonGeneratedCols = $tableObj->getNonGeneratedColumns();
|
||||
|
||||
// Skip tables that cannot be read
|
||||
if ($nonGeneratedCols === []) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$localQuery = 'SELECT ' . implode(', ', $nonGeneratedCols)
|
||||
. ' FROM ' . Util::backquote($db->getName())
|
||||
. '.' . Util::backquote($table);
|
||||
@ -468,6 +473,11 @@ class Export
|
||||
$tableObj = new Table($table, $db, $this->dbi);
|
||||
$nonGeneratedCols = $tableObj->getNonGeneratedColumns();
|
||||
|
||||
// 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