CloneSet1681


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
3210.991statement_list[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1383
src/NHibernate.Test/HQL/HQLFunctions.cs
2388
src/NHibernate.Test/HQL/HQLFunctions.cs
Clone Instance
1
Line Count
3
Source Line
83
Source File
src/NHibernate.Test/HQL/HQLFunctions.cs

                                result = s.CreateQuery("select count(*) from Animal").UniqueResult();
                                Assert.AreEqual( typeof(long), result.GetType());
                                Assert.AreEqual(2, result);


Clone Instance
2
Line Count
3
Source Line
88
Source File
src/NHibernate.Test/HQL/HQLFunctions.cs

                                // 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);


Clone AbstractionParameter Count: 1Parameter Bindings

// Count in where
result = s.CreateQuery( [[#variable28cf2500]]).UniqueResult();
Assert.AreEqual( typeof(long), result.GetType());
Assert.AreEqual(2, result);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#28cf2500]]
"select count(*) from Animal" 
12[[#28cf2500]]
"select count(a.id) from Animal a having count(a.id)>1"