Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
6 | 2 | 1 | 0.991 | statement_list[3] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 5 | 961 | src/NHibernate.Test/HQL/HQLFunctions.cs |
2 | 6 | 966 | 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"; |
| ||||
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"; |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#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" |
1 | 2 | [[#25822120]] | "from Animal a where cast(:aParam+a.BodyWeight as Double)>3" |