CloneSet787


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
14220.985class_member_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
113179
src/NHibernate/Dialect/MySQLDialect.cs
214132
src/NHibernate/Dialect/PostgreSQLDialect.cs
Clone Instance
1
Line Count
13
Source Line
179
Source File
src/NHibernate/Dialect/MySQLDialect.cs

                /// <summary>
                /// 
                /// </summary>
                /// <param name="querySqlString"></param>
                /// <param name="hasOffset"></param>
                /// <returns></returns>
                public override SqlString GetLimitString(SqlString querySqlString, bool hasOffset)
                {
                        var pagingBuilder = new SqlStringBuilder();
                        pagingBuilder.Add(querySqlString);
                        pagingBuilder.Add(" limit ");
                        pagingBuilder.Add(Parameter.Placeholder);

                        if (hasOffset)
                        {
                                pagingBuilder.Add(", ");
                                pagingBuilder.Add(Parameter.Placeholder);
                        }
                        return pagingBuilder.ToSqlString();
                }



Clone Instance
2
Line Count
14
Source Line
132
Source File
src/NHibernate/Dialect/PostgreSQLDialect.cs

                /// <summary>
                /// 
                /// </summary>
                /// <param name="querySqlString"></param>
                /// <param name="hasOffset">Offset of the first row to process in the result set is non-zero</param>
                /// <returns></returns>
                public override SqlString GetLimitString(SqlString querySqlString, bool hasOffset)
                {
                        SqlStringBuilder pagingBuilder = new SqlStringBuilder();
                        pagingBuilder.Add(querySqlString);
                        pagingBuilder.Add(" limit ");
                        pagingBuilder.Add(Parameter.Placeholder);

                        if (hasOffset)
                        {
                                pagingBuilder.Add(" offset ");
                                pagingBuilder.Add(Parameter.Placeholder);
                        }

                        return pagingBuilder.ToSqlString();
                }



Clone AbstractionParameter Count: 2Parameter Bindings

/// <summary>
/// 
/// </summary>
/// <param name="querySqlString"></param>
/// <param name="hasOffset">Offset of the first row to process in the result set is non-zero</param>
/// <param name="hasOffset"></param>
/// <returns></returns>
public override SqlString GetLimitString(SqlString querySqlString, bool hasOffset)
{
    [[#variable2c2704c0]]pagingBuilder = new SqlStringBuilder();
   pagingBuilder.Add(querySqlString);
   pagingBuilder.Add(" limit ");
   pagingBuilder.Add(Parameter.Placeholder);
   if (hasOffset)
   {
      pagingBuilder.Add( [[#variable2c2703e0]]);
      pagingBuilder.Add(Parameter.Placeholder);
   }
   return pagingBuilder.ToSqlString();
}

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#2c2704c0]]
SqlStringBuilder 
12[[#2c2704c0]]
var 
21[[#2c2703e0]]
" offset " 
22[[#2c2703e0]]
", "