CloneSet947


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
13220.988class_member_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
113230
src/NHibernate.Test/NHSpecificTest/NH1612/NativeSqlCollectionLoaderFixture.cs
215247
src/NHibernate.Test/NHSpecificTest/NH1612/NativeSqlCollectionLoaderFixture.cs
Clone Instance
1
Line Count
13
Source Line
230
Source File
src/NHibernate.Test/NHSpecificTest/NH1612/NativeSqlCollectionLoaderFixture.cs

                #endregion
                #region Tests - corner cases to verify backwards compatibility of NH-1612 patch
                [Test]
                public void NativeUpdateQueryWithoutResults()
                {
                        if ( !(Dialect is MsSql2000Dialect))
                        {
                                Assert.Ignore("This does not apply to {0}", Dialect);
                        }
                        using (ISession session = OpenSession())
                        {
                                using (ITransaction tx = session.BeginTransaction())
                                {
                                        session.GetNamedQuery("UpdateQueryWithoutResults").ExecuteUpdate();
                                        tx.Commit();
                                }
                        }
                }



Clone Instance
2
Line Count
15
Source Line
247
Source File
src/NHibernate.Test/NHSpecificTest/NH1612/NativeSqlCollectionLoaderFixture.cs

                [Test]
                public void NativeScalarQueryWithoutResults()
                {
                        if ( !(Dialect is MsSql2000Dialect))
                        {
                                Assert.Ignore("This does not apply to {0}", Dialect);
                        }
                        using (ISession session = OpenSession())
                        {
                                using (ITransaction tx = session.BeginTransaction())
                                {
                                        // Native SQL Query outcome is not validated against <return-*> 
                                        // resultset declarations.
                                        session.GetNamedQuery("ScalarQueryWithDefinedResultsetButNoResults").ExecuteUpdate();
                                        tx.Commit();
                                }
                        }
                }



Clone AbstractionParameter Count: 2Parameter Bindings

#endregion
#region Tests - corner cases to verify backwards compatibility of NH-1612 patch
[Test]
public void [[#variable2d2b2520]]()
{
   if ( !(Dialect is MsSql2000Dialect))
   {
      Assert.Ignore("This does not apply to {0}", Dialect);
   }
   using (ISession session = OpenSession())
   {
      using (ITransaction tx = session.BeginTransaction())
      {
         // Native SQL Query outcome is not validated against <return-*> 
         // resultset declarations.
         session.GetNamedQuery( [[#variable2d2b2500]]).ExecuteUpdate();
         tx.Commit();
      }
   }
}

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#2d2b2520]]
NativeUpdateQueryWithoutResults 
12[[#2d2b2520]]
NativeScalarQueryWithoutResults 
21[[#2d2b2500]]
"UpdateQueryWithoutResults" 
22[[#2d2b2500]]
"ScalarQueryWithDefinedResultsetButNoResults"