mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-16 10:58:30 -05:00
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:
@@ -158,6 +158,7 @@ namespace Microsoft.SqlTools.ServiceLayer.QueryExecution
|
|||||||
{
|
{
|
||||||
command.CommandText = BatchText;
|
command.CommandText = BatchText;
|
||||||
command.CommandType = CommandType.Text;
|
command.CommandType = CommandType.Text;
|
||||||
|
command.CommandTimeout = 0;
|
||||||
|
|
||||||
// Execute the command to get back a reader
|
// Execute the command to get back a reader
|
||||||
using (DbDataReader reader = await command.ExecuteReaderAsync(cancellationToken))
|
using (DbDataReader reader = await command.ExecuteReaderAsync(cancellationToken))
|
||||||
|
|||||||
Reference in New Issue
Block a user