Skip to content

Commit

Permalink
Skip adding empty text for scripted database drop operation (#2317)
Browse files Browse the repository at this point in the history
  • Loading branch information
corivera authored Jan 11, 2024
1 parent ebfd2b2 commit 09d2913
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,7 @@ public string Drop(DropDatabaseRequestParams dropParams)
var builder = new StringBuilder();
foreach (var scriptEntry in server.ConnectionContext.CapturedSql.Text)
{
if (scriptEntry != null)
if (!string.IsNullOrWhiteSpace(scriptEntry))
{
builder.AppendLine(scriptEntry);
builder.AppendLine("GO");
Expand Down

0 comments on commit 09d2913

Please sign in to comment.