Skip to content

Commit 85b22b6

Browse files
authored
Use using declaration for paramsCmd (#4010)
1 parent b1b93a8 commit 85b22b6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1350,7 +1350,7 @@ internal void DeriveParameters()
13501350
useManagedDataType = false;
13511351
}
13521352

1353-
SqlCommand paramsCmd = new SqlCommand(cmdText.ToString(), Connection, Transaction)
1353+
using SqlCommand paramsCmd = new SqlCommand(cmdText.ToString(), Connection, Transaction)
13541354
{
13551355
CommandType = CommandType.StoredProcedure
13561356
};

0 commit comments

Comments
 (0)