CloneSet648


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
19210.996block
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
119123
src/NHibernate/Hql/Ast/ANTLR/Exec/AbstractStatementExecutor.cs
218158
src/NHibernate/Hql/Ast/ANTLR/Exec/AbstractStatementExecutor.cs
Clone Instance
1
Line Count
19
Source Line
123
Source File
src/NHibernate/Hql/Ast/ANTLR/Exec/AbstractStatementExecutor.cs

                {
                        // Don't really know all the codes required to adequately decipher returned ADO exceptions here.
                        // simply allow the failure to be eaten and the subsequent insert-selects/deletes should fail
                        IIsolatedWork work = new TmpIdTableCreationIsolatedWork(persister, log, session);
                        if (ShouldIsolateTemporaryTableDDL())
                        {
                                if (Factory.Settings.IsDataDefinitionInTransactionSupported)
                                {
                                        Isolater.DoIsolatedWork(work, session);
                                }
                                else
                                {
                                        Isolater.DoNonTransactedWork(work, session);
                                }
                        }
                        else
                        {
                                work.DoWork(session.ConnectionManager.GetConnection(), null);
                                session.ConnectionManager.AfterStatement();
                        }
                }


Clone Instance
2
Line Count
18
Source Line
158
Source File
src/NHibernate/Hql/Ast/ANTLR/Exec/AbstractStatementExecutor.cs

                        {
                                IIsolatedWork work = new TmpIdTableDropIsolatedWork(persister, log, session);

                                if (ShouldIsolateTemporaryTableDDL())
                                {
                                        if (Factory.Settings.IsDataDefinitionInTransactionSupported)
                                        {
                                                Isolater.DoIsolatedWork(work, session);
                                        }
                                        else
                                        {
                                                Isolater.DoNonTransactedWork(work, session);
                                        }
                                }
                                else
                                {
                                        work.DoWork(session.ConnectionManager.GetConnection(), null);
                                        session.ConnectionManager.AfterStatement();
                                }
                        }


Clone AbstractionParameter Count: 1Parameter Bindings

{
   // Don't really know all the codes required to adequately decipher returned ADO exceptions here.
   // simply allow the failure to be eaten and the subsequent insert-selects/deletes should fail
   IIsolatedWork work = new [[#variable2d9f6c80]](persister, log, session);
   if (ShouldIsolateTemporaryTableDDL())
   {
      if (Factory.Settings.IsDataDefinitionInTransactionSupported)
      {
         Isolater.DoIsolatedWork(work, session);
      }
      else
      {
         Isolater.DoNonTransactedWork(work, session);
      }
   }
   else
   {
      work.DoWork(session.ConnectionManager.GetConnection(), null);
      session.ConnectionManager.AfterStatement();
   }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#2d9f6c80]]
TmpIdTableCreationIsolatedWork 
12[[#2d9f6c80]]
TmpIdTableDropIsolatedWork