diff --git a/code/DeltaKustoAdxIntegrationTest/DeltaKustoAdxIntegrationTest.csproj b/code/DeltaKustoAdxIntegrationTest/DeltaKustoAdxIntegrationTest.csproj index 85f5f16..c014ab5 100644 --- a/code/DeltaKustoAdxIntegrationTest/DeltaKustoAdxIntegrationTest.csproj +++ b/code/DeltaKustoAdxIntegrationTest/DeltaKustoAdxIntegrationTest.csproj @@ -15,7 +15,7 @@ - + diff --git a/code/DeltaKustoLib/CommandModel/CommandBase.cs b/code/DeltaKustoLib/CommandModel/CommandBase.cs index 133db03..6ae95c9 100644 --- a/code/DeltaKustoLib/CommandModel/CommandBase.cs +++ b/code/DeltaKustoLib/CommandModel/CommandBase.cs @@ -303,15 +303,16 @@ private static IEnumerable SplitCommandScripts(string script) foreach (var line in lines) { - if (line.Trim() == string.Empty) + if (line.Trim().StartsWith('.')) { if (currentCommandLines.Any()) { yield return string.Join('\n', currentCommandLines); currentCommandLines.Clear(); } + currentCommandLines.Add(line); } - else + else if(line.Trim() != string.Empty) { currentCommandLines.Add(line); }