CloneSet1702


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

                                result = (Animal)s.CreateQuery(hql).SetDouble("aParam", 2D).UniqueResult();
                                Assert.IsNotNull(result);

                                // Render in WHERE with math operation
                                hql = "from Animal a where cast(:aParam+a.BodyWeight as Double)>3";


Clone Instance
2
Line Count
6
Source Line
966
Source File
src/NHibernate.Test/HQL/HQLFunctions.cs

                                result = (Animal) s.CreateQuery(hql).SetDouble("aParam", 2D).UniqueResult();
                                Assert.IsNotNull(result);

                                // Render in all clauses
                                hql =
                                        "select cast(:aParam+a.BodyWeight as int) from Animal a group by cast(:aParam+a.BodyWeight as int) having cast(:aParam+a.BodyWeight as Double)>0";


Clone AbstractionParameter Count: 1Parameter Bindings

result = (Animal)s.CreateQuery(hql).SetDouble("aParam", 2D).UniqueResult();
Assert.IsNotNull(result);
// Render in all clauses
// Render in WHERE with math operation
hql = [[#variable25822120]];
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#25822120]]
"select cast(:aParam+a.BodyWeight as int) from Animal a group by cast(:aParam+a.BodyWeight as int) having cast(:aParam+a.BodyWeight as Double)>0" 
12[[#25822120]]
"from Animal a where cast(:aParam+a.BodyWeight as Double)>3"