Adding unlimited timeout for query execution (#76)

Adding explicitly setting the timeout for command execution to unlimited. We can change this to be user configurable at a later time
This commit is contained in:
Benjamin Russell
2016-10-06 10:26:34 -07:00
committed by GitHub
parent 926cfbf3bc
commit 46f0638283

View File

@@ -158,6 +158,7 @@ namespace Microsoft.SqlTools.ServiceLayer.QueryExecution
{
command.CommandText = BatchText;
command.CommandType = CommandType.Text;
command.CommandTimeout = 0;
// Execute the command to get back a reader
using (DbDataReader reader = await command.ExecuteReaderAsync(cancellationToken))