Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
15 | 2 | 1 | 0.993 | statement_list[8] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 16 | 1100 | src/NHibernate/Loader/Loader.cs |
2 | 15 | 1688 | 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); |
| ||||
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); |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#27fc8fa0]] | parameters |
1 | 2 | [[#27fc8fa0]] | queryParameters |