From be5c5b886c9d62dac8132a462481b9222999bea0 Mon Sep 17 00:00:00 2001 From: Mark Carrington <31017244+MarkMpn@users.noreply.github.com> Date: Wed, 9 Oct 2024 21:12:00 +0100 Subject: [PATCH] Fixed TDS compatibility --- MarkMpn.Sql4Cds.Engine/Ado/Sql4CdsCommand.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MarkMpn.Sql4Cds.Engine/Ado/Sql4CdsCommand.cs b/MarkMpn.Sql4Cds.Engine/Ado/Sql4CdsCommand.cs index 0610529f..cdcc13be 100644 --- a/MarkMpn.Sql4Cds.Engine/Ado/Sql4CdsCommand.cs +++ b/MarkMpn.Sql4Cds.Engine/Ado/Sql4CdsCommand.cs @@ -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) => {