CloneSet245


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
15210.993statement_list[8]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1161100
src/NHibernate/Loader/Loader.cs
2151688
src/NHibernate/Loader/Loader.cs
Clone Instance
1
Line Count
16
Source Line
1100
Source File
src/NHibernate/Loader/Loader.cs

                        SqlString sqlString = ProcessFilters(queryParameters, session);
                        Dialect.Dialect dialect = session.Factory.Dialect;

                        RowSelection selection = queryParameters.RowSelection;
                        bool useLimit = UseLimit(selection, dialect);
                        bool hasFirstRow = GetFirstRow(selection) > 0;
                        bool useOffset = hasFirstRow && useLimit && dialect.SupportsLimitOffset;
                        // TODO NH bool callable = queryParameters.Callable;

                        if (useLimit)
                        {
                                sqlString =
                                        dialect.GetLimitString(sqlString.Trim(), useOffset ? GetFirstRow(selection):  0, GetMaxOrLimit(dialect, selection));
                        }

                        sqlString = PreprocessSQL(sqlString, queryParameters, dialect);


Clone Instance
2
Line Count
15
Source Line
1688
Source File
src/NHibernate/Loader/Loader.cs

                        SqlString sqlString = ProcessFilters(parameters, session);
                        Dialect.Dialect dialect = session.Factory.Dialect;

                        RowSelection selection = parameters.RowSelection;
                        bool useLimit = UseLimit(selection, dialect);
                        bool hasFirstRow = GetFirstRow(selection) > 0;
                        bool useOffset = hasFirstRow && useLimit && dialect.SupportsLimitOffset;

                        if (useLimit)
                        {
                                sqlString =
                                        dialect.GetLimitString(sqlString.Trim(), useOffset ? GetFirstRow(selection):  0, GetMaxOrLimit(dialect, selection));
                        }

                        sqlString = PreprocessSQL(sqlString, parameters, dialect);


Clone AbstractionParameter Count: 1Parameter Bindings

SqlString sqlString = ProcessFilters( [[#variable27fc8fa0]], session);
Dialect.Dialect dialect = session.Factory.Dialect;
RowSelection selection = [[#variable27fc8fa0]].RowSelection;
bool useLimit = UseLimit(selection, dialect);
bool hasFirstRow = GetFirstRow(selection) > 0;
bool useOffset = hasFirstRow && useLimit && dialect.SupportsLimitOffset;
// TODO NH bool callable = queryParameters.Callable;
if (useLimit)
{
   sqlString = dialect.GetLimitString(sqlString.Trim(), useOffset ?
                                                        GetFirstRow(selection): 0, GetMaxOrLimit(dialect, selection));
}
sqlString = PreprocessSQL(sqlString, [[#variable27fc8fa0]], dialect);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#27fc8fa0]]
parameters 
12[[#27fc8fa0]]
queryParameters