Skip to content

Commit

Permalink
trim sql commands in information output
Browse files Browse the repository at this point in the history
  • Loading branch information
Steffen committed Nov 28, 2023
1 parent 29544aa commit 2ea35ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PsSmo/ClientCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ private void ConnectionContext_RemoteLoginFailed(object sender, ServerMessageEve

private void ConnectionContext_StatementExecuted(object sender, StatementEventArgs e)
{
WriteInformation(messageData: e.SqlStatement, tags: new string[] { "SqlStatement" });
WriteInformation(messageData: e.SqlStatement.Trim(), tags: new string[] { "SqlStatement" });
}

private void ConnectionContext_StateChange(object sender, System.Data.StateChangeEventArgs e)
Expand Down

0 comments on commit 2ea35ae

Please sign in to comment.