mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-16 18:47:57 -05:00
Kusto control command with comments or spaces (#1074)
Co-authored-by: Monica Gupta <mogupt@microsoft.com>
This commit is contained in:
@@ -229,6 +229,9 @@ namespace Microsoft.Kusto.ServiceLayer.DataSource
|
|||||||
cancellationToken.Register(() => CancelQuery(clientRequestProperties.ClientRequestId));
|
cancellationToken.Register(() => CancelQuery(clientRequestProperties.ClientRequestId));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var kustoCodeService = new KustoCodeService(query);
|
||||||
|
query = kustoCodeService.GetMinimalText(MinimalTextKind.RemoveLeadingWhitespaceAndComments);
|
||||||
|
|
||||||
IDataReader origReader = KustoQueryProvider.ExecuteQuery(
|
IDataReader origReader = KustoQueryProvider.ExecuteQuery(
|
||||||
KustoQueryUtils.IsClusterLevelQuery(query) ? "" : databaseName,
|
KustoQueryUtils.IsClusterLevelQuery(query) ? "" : databaseName,
|
||||||
query,
|
query,
|
||||||
|
|||||||
Reference in New Issue
Block a user