CloneSet623


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
11250.974statement_list[7]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11114
src/NHibernate.Test/DialectTest/SqlCEDialectFixture.cs
2833
src/NHibernate.Test/MappingTest/ColumnFixture.cs
Clone Instance
1
Line Count
11
Source Line
14
Source File
src/NHibernate.Test/DialectTest/SqlCEDialectFixture.cs

                        SimpleValue sv = new SimpleValue();
                        sv.TypeName = NHibernateUtil.BinaryBlob.Name;
                        Column column = new Column();
                        column.Value = sv;

                        // no length, should produce maximum
                        Assert.AreEqual("VARBINARY(8000)", column.GetSqlType(dialect, null));

                        // maximum varbinary length is 8000
                        column.Length = 8000;
                        Assert.AreEqual("VARBINARY(8000)", column.GetSqlType(dialect, null));


Clone Instance
2
Line Count
8
Source Line
33
Source File
src/NHibernate.Test/MappingTest/ColumnFixture.cs

                        SimpleValue sv = new SimpleValue();
                        sv.TypeName = NHibernateUtil.String.Name;
                        Column column = new Column();
                        column.Value = sv;
                        Assert.AreEqual("NVARCHAR(255)", column.GetSqlType(_dialect, null));

                        column.Length = 100;
                        Assert.AreEqual("NVARCHAR(100)", column.GetSqlType(_dialect, null));


Clone AbstractionParameter Count: 5Parameter Bindings

SimpleValue sv = new SimpleValue();
sv.TypeName = NHibernateUtil. [[#variable51c1ac20]].Name;
Column column = new Column();
column.Value = sv;
// no length, should produce maximum
Assert.AreEqual( [[#variable51c1b240]], column.GetSqlType( [[#variable51c1a1c0]], null));
// maximum varbinary length is 8000
column.Length = [[#variable50896f00]];
Assert.AreEqual( [[#variable51c1bec0]], column.GetSqlType( [[#variable51c1a1c0]], null));
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#51c1ac20]]
BinaryBlob 
12[[#51c1ac20]]
String 
21[[#51c1b240]]
"VARBINARY(8000)" 
22[[#51c1b240]]
"NVARCHAR(255)" 
31[[#51c1a1c0]]
dialect 
32[[#51c1a1c0]]
_dialect 
41[[#50896f00]]
8000 
42[[#50896f00]]
100 
51[[#51c1bec0]]
"VARBINARY(8000)" 
52[[#51c1bec0]]
"NVARCHAR(100)"