Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
14 | 2 | 2 | 0.985 | class_member_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 13 | 179 | src/NHibernate/Dialect/MySQLDialect.cs |
2 | 14 | 132 | src/NHibernate/Dialect/PostgreSQLDialect.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(); } |
| ||||
/// <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(); } |
| |||
/// <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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#2c2704c0]] | SqlStringBuilder |
1 | 2 | [[#2c2704c0]] | var |
2 | 1 | [[#2c2703e0]] | " offset " |
2 | 2 | [[#2c2703e0]] | ", " |