Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
7 | 2 | 2 | 0.977 | statement_list[4] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 8 | 562 | src/NHibernate.Test/Legacy/SQLLoaderTest.cs |
2 | 7 | 611 | src/NHibernate.Test/Legacy/SQLLoaderTest.cs |
| ||||
IQuery query = session.CreateSQLQuery( "select identifier_column as {a.id}, clazz_discriminata as {a.class}, name as {a.Name}, count_ as {a.Count} from {a} s"). AddEntity("a", typeof(A)); IList list = query.List(); Assert.IsNotNull(list); Assert.AreEqual(2, list.Count); |
| ||||
IQuery query = session.CreateSQLQuery( "select identifier_column as {a.id}, clazz_discriminata as {a.class}, count_ as {a.Count}, name as {a.Name}, anothername as {a.AnotherName} from A"). AddEntity("a", typeof(A)); IList list = query.List(); Assert.IsNotNull(list); Assert.AreEqual(count, list.Count); |
| |||
IQuery query = session.CreateSQLQuery( [[#variable53ac9ac0]]).AddEntity("a", typeof(A)); IList list = query.List(); Assert.IsNotNull(list); Assert.AreEqual( [[#variable53ac9a60]], list.Count); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#53ac9ac0]] | "select identifier_column as {a.id}, clazz_discriminata as {a.class}, count_ as {a.Count}, name as {a.Name}, anothername as {a.AnotherName} from A" |
1 | 2 | [[#53ac9ac0]] | "select identifier_column as {a.id}, clazz_discriminata as {a.class}, name as {a.Name}, count_ as {a.Count} from {a} s" |
2 | 1 | [[#53ac9a60]] | count |
2 | 2 | [[#53ac9a60]] | 2 |