Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
3 | 2 | 1 | 0.991 | statement_list[3] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 3 | 83 | src/NHibernate.Test/HQL/HQLFunctions.cs |
2 | 3 | 88 | src/NHibernate.Test/HQL/HQLFunctions.cs |
| ||||
result = s.CreateQuery("select count(*) from Animal").UniqueResult(); Assert.AreEqual( typeof(long), result.GetType()); Assert.AreEqual(2, result); |
| ||||
// Count in where result = s.CreateQuery("select count(a.id) from Animal a having count(a.id)>1").UniqueResult(); Assert.AreEqual( typeof(long), result.GetType()); Assert.AreEqual(2, result); |
| |||
// Count in where result = s.CreateQuery( [[#variable28cf2500]]).UniqueResult(); Assert.AreEqual( typeof(long), result.GetType()); Assert.AreEqual(2, result); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#28cf2500]] | "select count(*) from Animal" |
1 | 2 | [[#28cf2500]] | "select count(a.id) from Animal a having count(a.id)>1" |