Skip to content

Commit

Permalink
use StringFixedLength
Browse files Browse the repository at this point in the history
  • Loading branch information
tsahi committed Aug 3, 2020
1 parent 014f772 commit b37ae68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions BVT/Data.BVT/OracleDatabaseFixtures/ExecuteNonQueryFixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,10 @@ public void ValueIsReturnedWhenUsingStoredProcOutParameterWithDbCommand()
Database db = DatabaseFactory.CreateDatabase("OracleTest");
DbCommand dbCommand = db.GetStoredProcCommand("GetProductName");
db.AddInParameter(dbCommand, "vProductId", DbType.Int32, 1);
db.AddOutParameter(dbCommand, "vResult", DbType.String, 50);
db.AddOutParameter(dbCommand, "vResult", DbType.StringFixedLength, 50);
db.ExecuteNonQuery(dbCommand);
string productName = (string)db.ExecuteScalar(CommandType.Text, "select ProductName from Products where ProductId=1");
Assert.AreEqual(productName, Convert.ToString(db.GetParameterValue(dbCommand, "vResult")));
Assert.AreEqual(productName, Convert.ToString(db.GetParameterValue(dbCommand, "vResult")).Trim());
}

[TestMethod]
Expand Down

0 comments on commit b37ae68

Please sign in to comment.