Skip to content

Commit

Permalink
Fixed TDS compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkMpn committed Oct 9, 2024
1 parent 1dc5bbf commit be5c5b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MarkMpn.Sql4Cds.Engine/Ado/Sql4CdsCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ protected override DbDataReader ExecuteDbDataReader(CommandBehavior behavior)

var cmd = con.CreateCommand();
cmd.CommandTimeout = (int)TimeSpan.FromMinutes(2).TotalSeconds;
cmd.CommandText = SqlNode.ApplyCommandBehavior(CommandText, behavior, new NodeExecutionContext(null, _connection.Options, null, null, null));
cmd.CommandText = SqlNode.ApplyCommandBehavior(CommandText, behavior, new NodeExecutionContext(_connection.Session, _connection.Options, null, null, null));
var node = new SqlNode { Sql = cmd.CommandText, DataSource = _connection.Database };
cmd.StatementCompleted += (_, e) =>
{
Expand Down

0 comments on commit be5c5b8

Please sign in to comment.