Skip to content

Commit 65d034e

Browse files
stebetcheenamalhotra
authored andcommitted
Removing filtering of SQL Command text for non-stored procs when sending the BeginExecute event. (#242)
1 parent 7110853 commit 65d034e

File tree

1 file changed

+1
-2
lines changed
  • src/Microsoft.Data.SqlClient/netfx/src/Microsoft/Data/SqlClient

1 file changed

+1
-2
lines changed

src/Microsoft.Data.SqlClient/netfx/src/Microsoft/Data/SqlClient/SqlCommand.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7464,8 +7464,7 @@ private void WriteBeginExecuteEvent()
74647464
{
74657465
if (SqlEventSource.Log.IsEnabled() && Connection != null)
74667466
{
7467-
string commandText = CommandType == CommandType.StoredProcedure ? CommandText : string.Empty;
7468-
SqlEventSource.Log.BeginExecute(GetHashCode(), Connection.DataSource, Connection.Database, commandText);
7467+
SqlEventSource.Log.BeginExecute(GetHashCode(), Connection.DataSource, Connection.Database, CommandText);
74697468
}
74707469
}
74717470

0 commit comments

Comments
 (0)