CloneSet1496


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

                                result = (Animal)s.CreateQuery(hql).
                                         SetParameter(0, "bcd").
                                         UniqueResult();
                                Assert.AreEqual("abcdef", result.Description);


                                hql = "from Animal a where substring(a.Description, 2, ?) = 'bcd'";


Clone Instance
2
Line Count
7
Source Line
250
Source File
src/NHibernate.Test/HQL/HQLFunctions.cs

                                result = (Animal)s.CreateQuery(hql).
                                         SetParameter(0, 3).
                                         UniqueResult();
                                Assert.AreEqual("abcdef", result.Description);


                                hql = "from Animal a where substring(a.Description, ?, ?) = ?";


Clone AbstractionParameter Count: 2Parameter Bindings

result = (Animal)s.CreateQuery(hql).SetParameter(0, [[#variable2958f1a0]]).UniqueResult();
Assert.AreEqual("abcdef", result.Description);
hql = [[#variable2958f180]];
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#2958f1a0]]
3 
12[[#2958f1a0]]
"bcd" 
21[[#2958f180]]
"from Animal a where substring(a.Description, ?, ?) = ?" 
22[[#2958f180]]
"from Animal a where substring(a.Description, 2, ?) = 'bcd'"