Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
11 | 2 | 1 | 0.985 | non_pp_embedded_statement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 11 | 27 | src/NHibernate.Test/NHSpecificTest/NH1077/Fixture.cs |
2 | 11 | 72 | src/NHibernate.Test/NHSpecificTest/NH1275/Fixture.cs |
| ||||
using (ISession s = OpenSession()) using (ITransaction t = s.BeginTransaction()) { A a = s.Get < A > (savedId); using (SqlLogSpy sqlLogSpy = new SqlLogSpy()) { s.Lock(a, LockMode.Upgrade); string sql = sqlLogSpy.Appender.GetEvents()[0].RenderedMessage; Assert.Less(0, sql.IndexOf("with (updlock")); } t.Commit(); } |
| ||||
using (ISession s = OpenSession()) using (ITransaction t = s.BeginTransaction()) { A a = s.Get < A > (savedId); using (SqlLogSpy sqlLogSpy = new SqlLogSpy()) { s.Lock(a, LockMode.Upgrade); string sql = sqlLogSpy.Appender.GetEvents()[0].RenderedMessage; Assert.Less(0, sql.IndexOf(Dialect.ForUpdateString)); } t.Commit(); } |
| |||
using (ISession s = OpenSession()) using (ITransaction t = s.BeginTransaction()) { A a = s.Get < A > (savedId); using (SqlLogSpy sqlLogSpy = new SqlLogSpy()) { s.Lock(a, LockMode.Upgrade); string sql = sqlLogSpy.Appender.GetEvents()[0].RenderedMessage; Assert.Less(0, sql.IndexOf( [[#variable70a8ecc0]])); } t.Commit(); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#70a8ecc0]] | Dialect.ForUpdateString |
1 | 2 | [[#70a8ecc0]] | "with (updlock" |