CloneSet619


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
9230.983statement_list[5]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1932
src/NHibernate.Test/DialectTest/MsSqlDialectFixture.cs
2954
src/NHibernate.Test/DialectTest/MsSqlDialectFixture.cs
Clone Instance
1
Line Count
9
Source Line
32
Source File
src/NHibernate.Test/DialectTest/MsSqlDialectFixture.cs

                        Assert.AreEqual("select top 100 id, col1, col2 from someTable", limitedSql.ToString(),
                                        "Bad limit SQL");

                        // test when building with SqlParts
                        builder = new SqlStringBuilder();
                        builder.Add("select").Add(" id, col1, col2 ").Add("from someTable");
                        limitedSql = d.GetLimitString(builder.ToSqlString(), 0, 100);
                        Assert.AreEqual("select top 100 id, col1, col2 from someTable", limitedSql.ToString(),
                                        "Bad limit SQL");


Clone Instance
2
Line Count
9
Source Line
54
Source File
src/NHibernate.Test/DialectTest/MsSqlDialectFixture.cs

                        Assert.AreEqual("select distinct top 100 id, col1, col2 from someTable", limitedSql.ToString(),
                                        "Bad limit SQL");

                        // now with parts
                        builder = new SqlStringBuilder();
                        builder.Add("select").Add(" distinct").Add(" id, col1, col2 from someTable");
                        limitedSql = d.GetLimitString(builder.ToSqlString(), 0, 100);
                        Assert.AreEqual("select distinct top 100 id, col1, col2 from someTable", limitedSql.ToString(),
                                        "Bad limit SQL");


Clone AbstractionParameter Count: 3Parameter Bindings

Assert.AreEqual( [[#variable6f4b3be0]], limitedSql.ToString(), "Bad limit SQL");
// test when building with SqlParts
// now with parts
builder = new SqlStringBuilder();
builder.Add("select").Add( [[#variable6f4b3240]]).Add( [[#variable6f4b3a00]]);
limitedSql = d.GetLimitString(builder.ToSqlString(), 0, 100);
Assert.AreEqual( [[#variable6f4b3be0]], limitedSql.ToString(), "Bad limit SQL");
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#6f4b3be0]]
"select top 100 id, col1, col2 from someTable" 
12[[#6f4b3be0]]
"select distinct top 100 id, col1, col2 from someTable" 
21[[#6f4b3240]]
" id, col1, col2 " 
22[[#6f4b3240]]
" distinct" 
31[[#6f4b3a00]]
"from someTable" 
32[[#6f4b3a00]]
" id, col1, col2 from someTable"