From c23e5d3731e355efe83d07444d17fb41d0db01b2 Mon Sep 17 00:00:00 2001 From: Ansgar Becker Date: Sun, 17 Oct 2021 11:50:58 +0200 Subject: [PATCH] Fix generating mysqldump cli argument --databases with --tab --- source/tabletools.pas | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source/tabletools.pas b/source/tabletools.pas index 34b0be09..15bdda0c 100644 --- a/source/tabletools.pas +++ b/source/tabletools.pas @@ -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);