Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
6 | 2 | 1 | 0.972 | statement_list[5] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 6 | 4866 | src/NHibernate.Test/Legacy/FooBarTest.cs |
2 | 5 | 4893 | src/NHibernate.Test/Legacy/FooBarTest.cs |
| ||||
IDbCommand cmd = s.Connection.CreateCommand(); cmd.CommandText = "update " + Dialect.QuoteForTableName("foos") + " set long_ = -3"; cmd.ExecuteNonQuery(); s.Refresh(foo); Assert.AreEqual((long) - 3, foo.Long); |
| ||||
/* Commented to have same behavior of H3.2 (test named FooBarTest.testRefresh()) s.Close(); s = OpenSession(); btw using close and open a new session more than Transient the entity will be detached. */ IDbCommand cmd = s.Connection.CreateCommand(); cmd.CommandText = "update " + Dialect.QuoteForTableName("foos") + " set long_ = -3"; cmd.ExecuteNonQuery(); s.Refresh(foo); Assert.AreEqual( - 3L, foo.Long); |
| |||
/* Commented to have same behavior of H3.2 (test named FooBarTest.testRefresh()) s.Close(); s = OpenSession(); btw using close and open a new session more than Transient the entity will be detached. */ IDbCommand cmd = s.Connection.CreateCommand(); cmd.CommandText = "update " + Dialect.QuoteForTableName("foos") + " set long_ = -3"; cmd.ExecuteNonQuery(); s.Refresh(foo); Assert.AreEqual( [[#variable2bf66860]], foo.Long); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#2bf66860]] | (long) - 3 |
1 | 2 | [[#2bf66860]] | - 3L |