CloneSet1899


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
8220.980class_member_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
185701
src/NHibernate.Test/Legacy/FooBarTest.cs
285714
src/NHibernate.Test/Legacy/FooBarTest.cs
Clone Instance
1
Line Count
8
Source Line
5701
Source File
src/NHibernate.Test/Legacy/FooBarTest.cs

                [Test]
                public void ParameterInHavingClause()
                {
                        using (ISession s = OpenSession())
                        {
                                s.CreateQuery("select f.id from Foo f group by f.id having count(f.id) >= ?").
                                         SetInt32(0, 0).
                                         List();
                        }
                }



Clone Instance
2
Line Count
8
Source Line
5714
Source File
src/NHibernate.Test/Legacy/FooBarTest.cs

                // It's possible that this test only works on MS SQL Server. If somebody complains about
                // the test not working on their DB, I'll put an if around the code to only run on MS SQL.
                [Test]
                public void ParameterInOrderByClause()
                {
                        using (ISession s = OpenSession())
                        {
                                s.CreateQuery("from Foo as foo order by case ? when 0 then foo.id else foo.id end").
                                         SetInt32(0, 0).
                                         List();
                        }
                }



Clone AbstractionParameter Count: 2Parameter Bindings

// It's possible that this test only works on MS SQL Server. If somebody complains about
// the test not working on their DB, I'll put an if around the code to only run on MS SQL.
[Test]
public void [[#variable6db3ee40]]()
{
   using (ISession s = OpenSession())
   {
      s.CreateQuery( [[#variable6db3eda0]]).SetInt32(0, 0).List();
   }
}

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#6db3ee40]]
ParameterInHavingClause 
12[[#6db3ee40]]
ParameterInOrderByClause 
21[[#6db3eda0]]
"select f.id from Foo f group by f.id having count(f.id) >= ?" 
22[[#6db3eda0]]
"from Foo as foo order by case ? when 0 then foo.id else foo.id end"