mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-02 01:25:42 -05:00
Allow empty query string text (#415)
* Allow empty query string text * Remove test that is no longer valid * Remove test that is no longer valid
This commit is contained in:
@@ -1050,7 +1050,7 @@ namespace Microsoft.SqlTools.ServiceLayer.BatchParser.ExecutionEngineCode
|
||||
/// </remarks>
|
||||
public void ParseScript(string script, IBatchEventsHandler batchEventsHandler)
|
||||
{
|
||||
Validate.IsNotNullOrEmptyString(nameof(script), script);
|
||||
Validate.IsNotNull(nameof(script), script);
|
||||
Validate.IsNotNull(nameof(batchEventsHandler), batchEventsHandler);
|
||||
|
||||
|
||||
|
||||
@@ -90,7 +90,7 @@ namespace Microsoft.SqlTools.ServiceLayer.QueryExecution
|
||||
public Query(string queryText, ConnectionInfo connection, QueryExecutionSettings settings, IFileStreamFactory outputFactory)
|
||||
{
|
||||
// Sanity check for input
|
||||
Validate.IsNotNullOrEmptyString(nameof(queryText), queryText);
|
||||
Validate.IsNotNull(nameof(queryText), queryText);
|
||||
Validate.IsNotNull(nameof(connection), connection);
|
||||
Validate.IsNotNull(nameof(settings), settings);
|
||||
Validate.IsNotNull(nameof(outputFactory), outputFactory);
|
||||
|
||||
Reference in New Issue
Block a user