Fix generating mysqldump cli argument --databases with --tab

This commit is contained in:
Ansgar Becker
2021-10-17 11:50:58 +02:00
parent 535940872f
commit c23e5d3731

View File

@ -441,7 +441,11 @@ begin
end;
SessionNode := TreeObjects.GetNextSibling(SessionNode);
end;
Arguments.Add('--databases ' + Implode(' ', DatabaseNames));
// --databases or --all-databases can't be used with --tab
if comboExportOutputType.Text <> OUTPUT_DIR then
Arguments.Add('--databases ' + Implode(' ', DatabaseNames))
else
Arguments.Add(Implode(' ', DatabaseNames));
DatabaseNames.Free;
FullCommand := BinPath + ConnectionArguments + ' ' + Implode(' ', Arguments);