Skip to content

Commit

Permalink
Update src/Microsoft.Data.SqlClient/tests/ManualTests/SQL/SqlCommand/…
Browse files Browse the repository at this point in the history
…SqlCommandExecuteTest.cs

Co-authored-by: Cheena Malhotra <[email protected]>
  • Loading branch information
DavoudEshtehari and cheenamalhotra committed Sep 24, 2020
1 parent bc9af2b commit abde0a5
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,9 @@ private static SqlCommand GetCommand(SqlConnection cnn)
+ string.Concat(Enumerable.Repeat(aRecord, 200)).Substring(0, (aRecord.Length * 200) - 1)
+ ") tbl_A ([Id], [Name], [State])";
cnn.Open();
using (var cmd = cnn.CreateCommand())
{
cmd.CommandText = query;
return cmd;
}
var cmd = cnn.CreateCommand();
cmd.CommandText = query;
return cmd;
}
#endregion

Expand Down

0 comments on commit abde0a5

Please sign in to comment.